Fix linux app icon and use electron-icon-maker for generating icons
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
- name: Install Node.js, NPM and Yarn
|
- name: Install Node.js, NPM and Yarn
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 17
|
node-version: 18
|
||||||
|
|
||||||
- name: Build and release with electron-builder
|
- name: Build and release with electron-builder
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
|||||||
/.idea/
|
/.idea/
|
||||||
/release/
|
/release/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
/assets/generated
|
||||||
@@ -49,9 +49,9 @@
|
|||||||
|
|
||||||
As we know that Microsoft Office is a paid service, they also have a free Web version [here](https://office.com).
|
As we know that Microsoft Office is a paid service, they also have a free Web version [here](https://office.com).
|
||||||
|
|
||||||
For those people who can't afford Microsoft Office Subscription, or don't want to pay for that, or like the web version of it, Then **MS Office - Electron** is the app you require.
|
For those people who can't afford Microsoft Office Subscription, or don't want to pay for that, or like the web version of it, Then **MS-Office-Electron** is the app you require.
|
||||||
|
|
||||||
**MS Office - Electron** is the app in which the Web Version of Microsoft Office is wrapped into a Cross-Platform App with Electron. And all the Services of Microsoft Office will work for free.
|
**MS-Office-Electron** is the app in which the Web Version of Microsoft Office is wrapped into a Cross-Platform App with Electron. And all the Services of Microsoft Office will work for free.
|
||||||
|
|
||||||
Note - Windows Hello or Sign in with Security key is not currently supported and will show you an error. You will have to manually sign in with your E-Mail and Password.
|
Note - Windows Hello or Sign in with Security key is not currently supported and will show you an error. You will have to manually sign in with your E-Mail and Password.
|
||||||
|
|
||||||
|
|||||||
BIN
assets/icon.png
Normal file
BIN
assets/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 321 KiB |
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 44 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB |
@@ -6,7 +6,7 @@
|
|||||||
-->
|
-->
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>MS Office - Electron</title>
|
<title>MS-Office-Electron</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta
|
<meta
|
||||||
name="viewport"
|
name="viewport"
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
><img src="images/logo.png" alt=""
|
><img src="images/logo.png" alt=""
|
||||||
/></a>
|
/></a>
|
||||||
<h1>
|
<h1>
|
||||||
<strong>MS Office - Electron</strong><br />
|
<strong>MS-Office-Electron</strong><br />
|
||||||
Free Office Online Desktop Client
|
Free Office Online Desktop Client
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
height="auto"
|
height="auto"
|
||||||
class="floatright"
|
class="floatright"
|
||||||
/>
|
/>
|
||||||
MS Office - Electron is an app in which the Web Version of MS Office
|
MS-Office-Electron is an app in which the Web Version of MS Office
|
||||||
is wrapped into a Cross-Platform App with Electron. And all the
|
is wrapped into a Cross-Platform App with Electron. And all the
|
||||||
Services of Microsoft Office will work for free. It is available for
|
Services of Microsoft Office will work for free. It is available for
|
||||||
Windows, Mac OS, and Linux! If you like the project, do not forget to
|
Windows, Mac OS, and Linux! If you like the project, do not forget to
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title>Loading MS Office - Electron</title>
|
<title>Loading MS-Office-Electron</title>
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"
|
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<a href="https://github.com/agam778/MS-Office-Electron" target="_blank"
|
<a href="https://github.com/agam778/MS-Office-Electron" target="_blank"
|
||||||
><img src="./MSlogo.svg" alt="MS Office - Electron"
|
><img src="./MSlogo.svg" alt="MS-Office-Electron"
|
||||||
/></a>
|
/></a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
10
main.js
10
main.js
@@ -111,12 +111,12 @@ const menulayout = [
|
|||||||
label: "Application",
|
label: "Application",
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: "About MS Office - Electron",
|
label: "About MS-Office-Electron",
|
||||||
click: () =>
|
click: () =>
|
||||||
openAboutWindow({
|
openAboutWindow({
|
||||||
icon_path:
|
icon_path:
|
||||||
"https://raw.githubusercontent.com/agam778/MS-Office-Electron/main/assets/icons/icon.png",
|
"https://raw.githubusercontent.com/agam778/MS-Office-Electron/main/assets/icon.png",
|
||||||
product_name: "MS Office - Electron",
|
product_name: "MS-Office-Electron",
|
||||||
copyright:
|
copyright:
|
||||||
"Copyright (c) 2022 Agampreet Singh\nOffice, the name, website, images/icons\nare the intellectual properties of Microsoft.",
|
"Copyright (c) 2022 Agampreet Singh\nOffice, the name, website, images/icons\nare the intellectual properties of Microsoft.",
|
||||||
package_json_dir: __dirname,
|
package_json_dir: __dirname,
|
||||||
@@ -505,7 +505,7 @@ function createWindow() {
|
|||||||
const win = new BrowserWindow({
|
const win = new BrowserWindow({
|
||||||
width: 1181,
|
width: 1181,
|
||||||
height: 670,
|
height: 670,
|
||||||
icon: path.join(__dirname, "/assets/icons/icon.png"),
|
icon: path.join(__dirname, "/assets/generated/icons/png/1024x1024.png"),
|
||||||
show: false,
|
show: false,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
@@ -525,7 +525,7 @@ function createWindow() {
|
|||||||
transparent: true,
|
transparent: true,
|
||||||
frame: false,
|
frame: false,
|
||||||
alwaysOnTop: true,
|
alwaysOnTop: true,
|
||||||
icon: path.join(__dirname, "/assets/icons/icon.png"),
|
icon: path.join(__dirname, "/assets/generated/icons/png/1024x1024.png"),
|
||||||
});
|
});
|
||||||
|
|
||||||
splash.loadURL(`https://agam778.github.io/MS-Office-Electron/loading`);
|
splash.loadURL(`https://agam778.github.io/MS-Office-Electron/loading`);
|
||||||
|
|||||||
58
package.json
58
package.json
@@ -7,6 +7,11 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/agam778/MS-Office-Electron.git"
|
"url": "https://github.com/agam778/MS-Office-Electron.git"
|
||||||
},
|
},
|
||||||
|
"author": {
|
||||||
|
"name": "Agampreet Singh",
|
||||||
|
"email": "agam778@zohomail.in",
|
||||||
|
"url": "https://agam778.is-a.dev/"
|
||||||
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"extraFiles": [
|
"extraFiles": [
|
||||||
"/assets",
|
"/assets",
|
||||||
@@ -15,32 +20,19 @@
|
|||||||
"appId": "com.agampreet.ms-office-electron",
|
"appId": "com.agampreet.ms-office-electron",
|
||||||
"productName": "MS-Office-Electron",
|
"productName": "MS-Office-Electron",
|
||||||
"artifactName": "MS-Office-Electron-Setup-v${version}-${os}-${arch}.${ext}",
|
"artifactName": "MS-Office-Electron-Setup-v${version}-${os}-${arch}.${ext}",
|
||||||
"linux": {
|
|
||||||
"category": "Office",
|
|
||||||
"desktop": {
|
|
||||||
"Comment": "An Unofficial Microsoft Office Online Desktop Client. Free of Cost.",
|
|
||||||
"Name": "MS-Office-Electron",
|
|
||||||
"StartupNotify": "true",
|
|
||||||
"Terminal": "false",
|
|
||||||
"Type": "Application",
|
|
||||||
"Categories": "Office;"
|
|
||||||
},
|
|
||||||
"icon": "./assets/icons/icon.png",
|
|
||||||
"executableName": "MS-Office-Electron",
|
|
||||||
"maintainer": "Agampreet Singh <agam778@zohomail.in>",
|
|
||||||
"target": [
|
|
||||||
"deb",
|
|
||||||
"rpm",
|
|
||||||
"AppImage"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"mac": {
|
"mac": {
|
||||||
|
"identity": "null",
|
||||||
"category": "public.app-category.office",
|
"category": "public.app-category.office",
|
||||||
"target": [
|
"target": [
|
||||||
"dmg"
|
"dmg"
|
||||||
],
|
],
|
||||||
"icon": "./assets/icons/icon.icns"
|
"icon": "./assets/generated/icons/mac/icon.icns"
|
||||||
|
},
|
||||||
|
"win": {
|
||||||
|
"target": [
|
||||||
|
"nsis"
|
||||||
|
],
|
||||||
|
"icon": "./assets/generated/icons/win/icon.ico"
|
||||||
},
|
},
|
||||||
"nsis": {
|
"nsis": {
|
||||||
"oneClick": false,
|
"oneClick": false,
|
||||||
@@ -48,11 +40,16 @@
|
|||||||
"allowToChangeInstallationDirectory": false,
|
"allowToChangeInstallationDirectory": false,
|
||||||
"license": "LICENSE"
|
"license": "LICENSE"
|
||||||
},
|
},
|
||||||
"win": {
|
"linux": {
|
||||||
|
"category": "Office",
|
||||||
|
"icon": "./assets/generated/icons/png",
|
||||||
|
"executableName": "ms-office-electron",
|
||||||
|
"maintainer": "Agampreet Singh <agam778@zohomail.in>",
|
||||||
"target": [
|
"target": [
|
||||||
"nsis"
|
"deb",
|
||||||
],
|
"rpm",
|
||||||
"icon": "./assets/icons/icon.ico"
|
"AppImage"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"directories": {
|
"directories": {
|
||||||
"output": "release"
|
"output": "release"
|
||||||
@@ -60,14 +57,10 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
"pack": "electron-builder --dir",
|
"genicon": "rm -rf ./assets/generated && electron-icon-maker --input=assets/icon.png --output=assets/generated",
|
||||||
|
"pack": "yarn genicon && electron-builder --dir",
|
||||||
"dist": "electron-builder"
|
"dist": "electron-builder"
|
||||||
},
|
},
|
||||||
"author": {
|
|
||||||
"name": "Agampreet Singh",
|
|
||||||
"email": "agam778@zohomail.in",
|
|
||||||
"url": "https://agam778.is-a.dev/"
|
|
||||||
},
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"electron": "^18.2.2",
|
"electron": "^18.2.2",
|
||||||
@@ -82,6 +75,7 @@
|
|||||||
"electron-log": "^4.4.7",
|
"electron-log": "^4.4.7",
|
||||||
"electron-store": "^8.0.1",
|
"electron-store": "^8.0.1",
|
||||||
"electron-updater": "^5.0.1",
|
"electron-updater": "^5.0.1",
|
||||||
"is-online": "^9.0.1"
|
"is-online": "^9.0.1",
|
||||||
|
"electron-icon-maker": "0.0.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user