mirror of
https://github.com/agam778/MS-365-Electron.git
synced 2026-02-17 09:02:10 +00:00
Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd4454334c | ||
|
|
89668ce6b6 | ||
|
|
c081f6536f | ||
|
|
39318bd70b | ||
|
|
e292aacf54 | ||
|
|
5f6d5ee58f | ||
|
|
8eed667124 | ||
|
|
5ea6f9f802 | ||
|
|
55e2a869ec | ||
|
|
3e96c4f6ac | ||
|
|
fec6181578 | ||
|
|
fc8695aa1e | ||
|
|
729ecfc981 | ||
|
|
6e4eb8cfa6 | ||
|
|
7c13e79abd | ||
|
|
c4c1381910 | ||
|
|
f1bab648cb | ||
|
|
ddb4f46b0a | ||
|
|
0b96b9500c | ||
|
|
4d45d79202 | ||
|
|
0ed45311ac | ||
|
|
2438a6c6ba | ||
|
|
4308a17529 |
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
||||
- name: Install Node.js, NPM and Yarn
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 17
|
||||
node-version: 18
|
||||
|
||||
- name: Build and release with electron-builder
|
||||
run: |
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,4 +1,5 @@
|
||||
/node_modules/
|
||||
/.idea/
|
||||
/release/
|
||||
.DS_Store
|
||||
.DS_Store
|
||||
/assets/generated
|
||||
18
README.md
18
README.md
@@ -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).
|
||||
|
||||
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.
|
||||
|
||||
@@ -140,7 +140,7 @@ If you find any issues in using the AUR Builds, please create a [New Issue](http
|
||||
To build the app locally:<br>
|
||||
Run this script to automatically install `nodejs`, `yarn` and all the dependencies, and automatically start/build the app (it will show options) (Note: for Linux and macOS Only!):
|
||||
```bash
|
||||
git clone --depth=1 https://github.com/agam778/MS-Office-Electron.git
|
||||
git clone https://github.com/agam778/MS-Office-Electron.git
|
||||
cd MS-Office-Electron
|
||||
bash build.sh
|
||||
```
|
||||
@@ -155,16 +155,18 @@ yarn install
|
||||
```
|
||||
```bash
|
||||
$ yarn run
|
||||
yarn run v1.22.17
|
||||
info Commands available from binary scripts: asar, dircompare, ejs, electron, electron-builder, electron-osx-flat, electron-osx-sign, extract-zip, install-app-deps, is-ci, jake, js-yaml, json5, mime, mkdirp, node-which, rc, rimraf, semver
|
||||
yarn run v1.22.18
|
||||
info Commands available from binary scripts: asar, dircompare, ejs, electron, electron-builder, electron-icon-maker, electron-osx-flat, electron-osx-sign, extract-zip, icon-gen, install-app-deps, is-ci, jake, js-yaml, json5, mime, mkdirp, phantomjs, pixelmatch, rc, resolve, rimraf, semver, sshpk-conv, sshpk-sign, sshpk-verify, svg2png, uuid, which
|
||||
info Project commands
|
||||
- dist
|
||||
electron-builder
|
||||
yarn genicon && electron-builder
|
||||
- genicon
|
||||
rm -rf ./assets/generated && electron-icon-maker --input=assets/icon.png --output=assets/generated
|
||||
- pack
|
||||
electron-builder --dir
|
||||
yarn genicon && electron-builder --dir
|
||||
- start
|
||||
electron .
|
||||
question Which command would you like to run?:
|
||||
question Which command would you like to run?:
|
||||
```
|
||||
|
||||
To start the app, run `yarn start`<br>
|
||||
|
||||
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 |
31
build.sh
31
build.sh
@@ -8,6 +8,7 @@ if ! [ -x "$(command -v node)" ]; then
|
||||
if [ -f /etc/debian_version ]; then
|
||||
curl -fsSL https://deb.nodesource.com/setup_17.x | sudo -E bash -
|
||||
sudo apt-get install -y nodejs
|
||||
sudo apt-get install rpm -y # for rpm build.
|
||||
elif [ -f /etc/redhat-release ]; then
|
||||
sudo yum install nodejs
|
||||
elif [ -f /etc/arch-release ]; then
|
||||
@@ -167,10 +168,11 @@ else
|
||||
fi
|
||||
|
||||
clear
|
||||
echo 'Do you want to run the app or build the app?'
|
||||
echo '1. Run the app'
|
||||
echo 'What do you want to do?'
|
||||
echo '1. Run the app without building'
|
||||
echo '2. Build the app'
|
||||
echo '3. Exit'
|
||||
echo '3. Build and install the app'
|
||||
echo '4. Exit'
|
||||
echo 'Enter your choice:'; read choice;
|
||||
if [ "$choice" -eq "1" ]; then
|
||||
echo 'Running the app...'
|
||||
@@ -191,6 +193,29 @@ if [ "$choice" -eq "1" ]; then
|
||||
fi
|
||||
fi
|
||||
elif [ "$choice" -eq "3" ]; then
|
||||
echo 'Building and installing the app...'
|
||||
if ! [ -f /etc/debian_version ]; then
|
||||
echo 'Error: "Build and install the app" option is only supported on Debian-based systems for now.' >&2
|
||||
exit 0
|
||||
fi
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
if [ "$(uname -m)" == "arm64" ]; then
|
||||
sudo yarn dist --arm64
|
||||
sudo apt install -y -f ./release/MS-Office-Electron*.deb
|
||||
elif [ "$(uname -m)" == "x86_64" ]; then
|
||||
sudo yarn dist --x64
|
||||
sudo apt install -y -f ./release/MS-Office-Electron*.deb
|
||||
fi
|
||||
else
|
||||
if [ "$(uname -m)" == "arm64" ]; then
|
||||
yarn dist --arm64
|
||||
apt install -y -f ./release/MS-Office-Electron*.deb
|
||||
elif [ "$(uname -m)" == "x86_64" ]; then
|
||||
yarn dist --x64
|
||||
apt install -y -f ./release/MS-Office-Electron*.deb
|
||||
fi
|
||||
fi
|
||||
elif [ "$choice" -eq "4" ]; then
|
||||
echo 'Exiting...'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>MS Office - Electron</title>
|
||||
<title>MS-Office-Electron</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
@@ -22,7 +22,7 @@
|
||||
><img src="images/logo.png" alt=""
|
||||
/></a>
|
||||
<h1>
|
||||
<strong>MS Office - Electron</strong><br />
|
||||
<strong>MS-Office-Electron</strong><br />
|
||||
Free Office Online Desktop Client
|
||||
</h1>
|
||||
</div>
|
||||
@@ -46,7 +46,7 @@
|
||||
height="auto"
|
||||
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
|
||||
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
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Loading MS Office - Electron</title>
|
||||
<title>Loading MS-Office-Electron</title>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
<div class="logo">
|
||||
<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>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
36
main.js
36
main.js
@@ -15,15 +15,17 @@ const clientId = "942637872530460742";
|
||||
const rpc = new RPC.Client({ transport: "ipc" });
|
||||
|
||||
const windowsuseragent =
|
||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36";
|
||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36";
|
||||
const macuseragent =
|
||||
"Mozilla/5.0 (Macintosh; Intel Mac OS X 12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36";
|
||||
"Mozilla/5.0 (Macintosh; Intel Mac OS X 12_3_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36";
|
||||
const linuxuseragent =
|
||||
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36";
|
||||
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36";
|
||||
|
||||
const log = require("electron-log");
|
||||
log.transports.file.level = "verbose";
|
||||
console.log = log.log;
|
||||
Object.assign(console, log.functions);
|
||||
require("electron-log");
|
||||
|
||||
ElectronDl({
|
||||
dlPath: "./downloads",
|
||||
@@ -109,12 +111,12 @@ const menulayout = [
|
||||
label: "Application",
|
||||
submenu: [
|
||||
{
|
||||
label: "About MS Office - Electron",
|
||||
label: "About MS-Office-Electron",
|
||||
click: () =>
|
||||
openAboutWindow({
|
||||
icon_path:
|
||||
"https://raw.githubusercontent.com/agam778/MS-Office-Electron/main/assets/icons/icon.png",
|
||||
product_name: "MS Office - Electron",
|
||||
"https://raw.githubusercontent.com/agam778/MS-Office-Electron/main/assets/icon.png",
|
||||
product_name: "MS-Office-Electron",
|
||||
copyright:
|
||||
"Copyright (c) 2022 Agampreet Singh\nOffice, the name, website, images/icons\nare the intellectual properties of Microsoft.",
|
||||
package_json_dir: __dirname,
|
||||
@@ -176,19 +178,15 @@ const menulayout = [
|
||||
await shell.openPath(
|
||||
"C:\\Users\\" +
|
||||
process.env.USERNAME +
|
||||
"\\AppData\\Roaming\\ms-office-electron\\\\logs\\"
|
||||
"\\AppData\\Roaming\\ms-office-electron\\logs\\"
|
||||
);
|
||||
} else if (process.platform === "darwin") {
|
||||
await shell.openPath(
|
||||
"/Users/" +
|
||||
process.env.USERNAME +
|
||||
"/Library/Logs/ms-office-electron/"
|
||||
"/Users/" + process.env.USER + "/Library/Logs/ms-office-electron/"
|
||||
);
|
||||
} else if (process.platform === "linux") {
|
||||
await shell.openPath(
|
||||
"/home/" +
|
||||
process.env.USERNAME +
|
||||
"/.config/ms-office-electron/logs"
|
||||
"/home/" + process.env.USER + "/.config/ms-office-electron/logs/"
|
||||
);
|
||||
}
|
||||
},
|
||||
@@ -507,7 +505,7 @@ function createWindow() {
|
||||
const win = new BrowserWindow({
|
||||
width: 1181,
|
||||
height: 670,
|
||||
icon: path.join(__dirname, "/assets/icons/icon.png"),
|
||||
icon: path.join(__dirname, "/assets/generated/icons/png/1024x1024.png"),
|
||||
show: false,
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
@@ -527,7 +525,7 @@ function createWindow() {
|
||||
transparent: true,
|
||||
frame: false,
|
||||
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`);
|
||||
@@ -593,5 +591,11 @@ app.on("ready", function () {
|
||||
}
|
||||
});
|
||||
autoUpdater.checkForUpdatesAndNotify();
|
||||
rpc.login({ clientId }).catch((err) => console.error(err));
|
||||
rpc
|
||||
.login({ clientId })
|
||||
.catch((err) =>
|
||||
console.error(
|
||||
"Oops! An Error occured while connecting to Discord RPC. Probably discord isn't installed or opened?"
|
||||
)
|
||||
);
|
||||
});
|
||||
|
||||
75
package.json
75
package.json
@@ -1,12 +1,17 @@
|
||||
{
|
||||
"name": "ms-office-electron",
|
||||
"version": "0.6.0",
|
||||
"version": "0.7.1",
|
||||
"description": "An Unofficial Microsoft Office Online Desktop Client. Free of Cost.",
|
||||
"main": "main.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/agam778/MS-Office-Electron.git"
|
||||
},
|
||||
"author": {
|
||||
"name": "Agampreet Singh",
|
||||
"email": "agam778@zohomail.in",
|
||||
"url": "https://agamsblog.xyz/"
|
||||
},
|
||||
"build": {
|
||||
"extraFiles": [
|
||||
"/assets",
|
||||
@@ -15,34 +20,19 @@
|
||||
"appId": "com.agampreet.ms-office-electron",
|
||||
"productName": "MS-Office-Electron",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"deb": {
|
||||
"compression": "bzip2"
|
||||
},
|
||||
"mac": {
|
||||
"identity": "null",
|
||||
"category": "public.app-category.office",
|
||||
"target": [
|
||||
"dmg"
|
||||
],
|
||||
"icon": "./assets/icons/icon.icns"
|
||||
"icon": "./assets/generated/icons/mac/icon.icns"
|
||||
},
|
||||
"win": {
|
||||
"target": [
|
||||
"nsis"
|
||||
],
|
||||
"icon": "./assets/generated/icons/win/icon.ico"
|
||||
},
|
||||
"nsis": {
|
||||
"oneClick": false,
|
||||
@@ -50,11 +40,17 @@
|
||||
"allowToChangeInstallationDirectory": false,
|
||||
"license": "LICENSE"
|
||||
},
|
||||
"win": {
|
||||
"linux": {
|
||||
"category": "Office",
|
||||
"icon": "./assets/generated/icons/png",
|
||||
"executableName": "ms-office-electron",
|
||||
"maintainer": "Agampreet Singh <agam778@zohomail.in>",
|
||||
"target": [
|
||||
"nsis"
|
||||
],
|
||||
"icon": "./assets/icons/icon.ico"
|
||||
"snap",
|
||||
"deb",
|
||||
"rpm",
|
||||
"AppImage"
|
||||
]
|
||||
},
|
||||
"directories": {
|
||||
"output": "release"
|
||||
@@ -62,28 +58,25 @@
|
||||
},
|
||||
"scripts": {
|
||||
"start": "electron .",
|
||||
"pack": "electron-builder --dir",
|
||||
"dist": "electron-builder"
|
||||
},
|
||||
"author": {
|
||||
"name": "Agampreet Singh",
|
||||
"email": "agam778@zohomail.in",
|
||||
"url": "https://agam778.is-a.dev/"
|
||||
"genicon": "rm -rf ./assets/generated && electron-icon-maker --input=assets/icon.png --output=assets/generated",
|
||||
"pack": "yarn genicon && electron-builder --dir -c.snap.publish=github",
|
||||
"dist": "yarn genicon && electron-builder -c.snap.publish=github"
|
||||
},
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"electron": "^18.0.1",
|
||||
"electron-builder": "^22.14.5"
|
||||
"electron": "^18.2.3",
|
||||
"electron-builder": "^23.0.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"about-window": "^1.15.2",
|
||||
"axios": "^0.26.1",
|
||||
"axios": "^0.27.2",
|
||||
"discord-rpc": "^4.0.1",
|
||||
"electron-context-menu": "^3.1.1",
|
||||
"electron-dl": "^3.3.0",
|
||||
"electron-log": "^4.4.5",
|
||||
"electron-dl": "^3.3.1",
|
||||
"electron-icon-maker": "0.0.5",
|
||||
"electron-log": "^4.4.7",
|
||||
"electron-store": "^8.0.1",
|
||||
"electron-updater": "^4.6.1",
|
||||
"electron-updater": "^5.0.1",
|
||||
"is-online": "^9.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user