Compare commits

...

38 Commits

Author SHA1 Message Date
Agampreet Singh
e68f15b6fb v0.3.2
Former-commit-id: 252e02cecc1fc8ea324ce87c7fdf4d74b8ae37a0
2021-10-16 12:49:11 +05:30
Agampreet Singh
2e0dcfe283 Merge remote-tracking branch 'origin/main' into main
Former-commit-id: bc417bd606954942e2122f0112663d8d180a6f18
2021-10-13 18:46:41 +05:30
Agampreet Singh
95253ce88c v0.3.1
trial release

trial release

Update not.travis.yml
Add New Intro Image
Delete Intro Image.png
Add files via upload
Delete Intro Image.png
Add files via upload
Update README.md
Delete Intro-Image.png
Add files via upload
Update README.md

Former-commit-id: f1b2195b2f
2021-10-13 18:45:57 +05:30
Agampreet Singh
dcd03c5ad9 Update README.md
Former-commit-id: 324fcc5382ed6eeb1e6d4af94f511cbe70ebcdb4
2021-10-13 18:40:47 +05:30
Agampreet Singh
3808356a16 Add files via upload
Former-commit-id: 32dd661f4ccb331ed7978be4103d7530d3a30804
2021-10-13 18:40:33 +05:30
Agampreet Singh
c6f2df4c23 Delete Intro-Image.png
Former-commit-id: edcf69216c56b018c518ca4ae0bc8eb452fbfc26
2021-10-13 18:40:14 +05:30
Agampreet Singh
7de47a699d Update README.md
Former-commit-id: fd98cdae85145ca52a4ea04ec3caa352c5f1c88f
2021-10-13 18:39:48 +05:30
Agampreet Singh
de0940527a Add files via upload
Former-commit-id: 472c5aa5057b7ea7bd17d0cb7763a36d0a312889
2021-10-13 18:39:23 +05:30
Agampreet Singh
4f3adc36fc Delete Intro Image.png
Former-commit-id: 451b46319e77d7b2b9c36bb9d27b6aeb753c0a2c
2021-10-13 18:38:40 +05:30
Agampreet Singh
fa05f75c92 Add files via upload
Former-commit-id: fd1c562ee60b37dee3bd8157b0f62ac311ae4e54
2021-10-13 18:38:16 +05:30
Agampreet Singh
3c63b630c5 Delete Intro Image.png
Former-commit-id: 51cd39f6507274d2f6b61e7f7a7e0412f2043688
2021-10-13 18:37:24 +05:30
Agampreet Singh
02ba39a57d Add New Intro Image
Former-commit-id: fa34638aaaaaffcf3c3b50f67b37dee69eb2dfee
2021-10-13 18:15:19 +05:30
Agampreet Singh
2e244701f1 Update not.travis.yml
Former-commit-id: 2b8c0dea5a41ea14571cfa3a198ddaa202c1ff40
2021-10-10 12:14:58 +05:30
Agampreet Singh
1fd5e89d6e trial release
Former-commit-id: c286bcf18a454415863598c29b37d66eeb1b5aa9
2021-10-10 12:11:01 +05:30
Agampreet Singh
f07cdbc963 trial release
Former-commit-id: ba303fb51a76c6e5cc2e42d2c00b90bd1e801bcc
2021-10-10 12:09:52 +05:30
Agampreet Singh
43d55a4336 v0.3.1
Former-commit-id: 4c1e1930067afec0f670aeb841bcda689e99937f
2021-10-10 12:07:03 +05:30
Agampreet Singh
f8f0026dc2 Update and rename .travis.yml to not.travis.yml
Former-commit-id: debb852bf5
2021-10-10 11:59:15 +05:30
Agampreet Singh
ed891b8dd8 Update and rename not-using.travis-now.yml to .travis.yml
Former-commit-id: c3adb4fb13
2021-10-10 11:53:53 +05:30
Agampreet Singh
927d6bf46d Rename .travis.yml to not-using.travis-now.yml
Former-commit-id: 73df74a853
2021-10-10 11:33:44 +05:30
Agampreet Singh
bd6c629c00 Delete Intro Image.png
Former-commit-id: 0ee06fc3d2
2021-10-10 11:32:56 +05:30
Agampreet Singh
7e399417a0 Add New Image xD
Former-commit-id: 92f1d6d389
2021-10-10 11:32:09 +05:30
Agampreet Singh
a73fc73623 Delete Intro Image.png
Former-commit-id: 449a6db0aa
2021-10-10 11:31:08 +05:30
Agampreet Singh
c66d64e03c Update README.md
Former-commit-id: f67f20153c
2021-10-10 11:07:24 +05:30
Agampreet Singh
d514c0aaf5 update to xcode12.5 in travis
Former-commit-id: 6e0a51f977
2021-10-09 14:31:32 +05:30
Agampreet Singh
9cf668c1e3 Use focal fossa travis
Former-commit-id: 45dd89c313
2021-10-09 14:29:02 +05:30
Agampreet Singh
14fa39743f Change travis mac architecture
Former-commit-id: b3c7a050a8
2021-10-09 14:26:29 +05:30
Agampreet Singh
37b8deb7bb Update .travis.yml
Former-commit-id: a2aa889ea5
2021-10-09 14:17:43 +05:30
Agampreet Singh
722a3404c8 Update package.json
Former-commit-id: 31745531dd
2021-10-09 14:17:08 +05:30
Agampreet Singh
ff451a339e Update .travis.yml
Former-commit-id: 60ec91f931
2021-10-09 14:11:04 +05:30
Agampreet Singh
6d95f3866f blank commit
Former-commit-id: 517a62e955
2021-10-09 14:01:46 +05:30
Agampreet Singh
5a7c9f0f88 remove yarn in travis
Former-commit-id: 8f20bc5491
2021-10-09 13:52:34 +05:30
Agampreet Singh
4f33f9fcc1 0.3.1 release files
Former-commit-id: 2d88e8d567
2021-10-09 13:47:35 +05:30
Agampreet Singh
439eb08d10 Update .travis.yml
Former-commit-id: 7ed20f5fcd
2021-10-09 13:31:13 +05:30
Agampreet Singh
93f9aef556 Update .travis.yml
Former-commit-id: 4cb63a988d
2021-10-09 13:16:12 +05:30
Agampreet Singh
1cb751c888 Update .travis.yml
Former-commit-id: f26a2c6222
2021-10-09 13:13:08 +05:30
Agampreet Singh
6b0a894eb3 Update .travis.yml
Former-commit-id: 5a9e353426
2021-10-09 13:07:16 +05:30
Agampreet Singh
445ca8631e Create .travis.yml
Former-commit-id: 7c81275417
2021-10-09 13:03:13 +05:30
Agampreet Singh
7148a4c9c3 Add files via upload
Former-commit-id: 9d44ac3698
2021-10-06 12:21:04 +05:30
59 changed files with 2235 additions and 960 deletions

31
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Build/release
on: push
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 16
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
node_modules/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

BIN
Intro_Image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

View File

@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 504 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 504 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -1,85 +0,0 @@
{
"name": "ms-office-electron",
"version": "0.3.0",
"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"
},
"build": {
"extraFiles": [
"index.html",
"Intro Image.png",
"Loading.gif",
"icon.png",
"icon.ico",
"license.txt",
"icon2.png"
],
"appId": "com.agampreet.microsoft-office-electron",
"productName": "MS Office - Electron",
"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": "icon.icns",
"artifactName": "MS-Office-Electron-Setup-${version}-x86_64.${ext}",
"executableName": "MS Office - Electron",
"maintainer": "Agampreet Singh <agam778@zohomail.in>",
"target": [
"AppImage"
]
},
"deb": {
"compression": "bzip2"
},
"mac": {
"category": "public.app-category.office",
"target": [
"dmg"
]
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": false,
"license": "license.txt"
},
"win": {
"target": [
"nsis"
]
},
"directories": {
"output": "release"
}
},
"scripts": {
"start": "electron .",
"pack": "electron-builder --dir",
"dist": "electron-builder"
},
"author": {
"author": "Agampreet Singh",
"email": "agam778singh@outlook.com",
"url": "https://agam778.github.io/"
},
"license": "MIT",
"devDependencies": {
"electron": "^15.1.1",
"electron-builder": "^22.11.7"
},
"dependencies": {
"about-window": "^1.15.0",
"electron-updater": "^4.3.9",
"is-online": "^9.0.1",
"node-notifier": "^10.0.0"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 504 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2021 Agampreet Singh
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -1,186 +0,0 @@
const { app, Menu, BrowserWindow, globalShortcut } = require("electron");
const { dialog } = require("electron");
const openAboutWindow = require("about-window").default;
const join = require("path").join;
const isMac = process.platform === "darwin";
const path = require("path");
const electron = require("electron");
const { autoUpdater } = require("electron-updater");
const isOnline = require("is-online");
const template = [
// { role: 'appMenu' }
...(isMac
? [
{
label: app.name,
submenu: [
{ role: "about" },
{ type: "separator" },
{ role: "services" },
{ type: "separator" },
{ role: "hide" },
{ role: "hideothers" },
{ role: "unhide" },
{ type: "separator" },
{ role: "quit" },
],
},
]
: []),
// { role: 'fileMenu' }
{
label: "Application",
submenu: [
{
label: "About MS Office - Electron",
click: () =>
openAboutWindow({
icon_path:
"https://github.com/agam778/MS-Office-Electron/blob/main/icon2.png?raw=true",
product_name: "MS Office - Electron",
copyright: "Copyright (c) 2021 Agampreet Singh Bajaj",
package_json_dir: __dirname,
bug_report_url:
"https://github.com/agam778/Microsoft-Office-Electron/issues/",
bug_link_text: "Report an issue",
adjust_window_size: "2",
show_close_button: "Close",
}),
},
{
label: "Learn More",
click: async () => {
const { shell } = require("electron");
await shell.openExternal(
"https://github.com/agam778/MS-Office-Electron"
);
},
},
{ type: "separator" },
{
role: "quit",
accelerator: process.platform === "darwin" ? "Ctrl+Q" : "Ctrl+Q",
},
],
},
// { role: 'editMenu' }
{
label: "Edit",
submenu: [
{ role: "undo" },
{ role: "redo" },
{ type: "separator" },
{ role: "cut" },
{ role: "copy" },
{ role: "paste" },
...(isMac
? [
{ role: "pasteAndMatchStyle" },
{ role: "delete" },
{ role: "selectAll" },
{ type: "separator" },
{
label: "Speech",
submenu: [{ role: "startSpeaking" }, { role: "stopSpeaking" }],
},
]
: [{ role: "delete" }, { type: "separator" }, { role: "selectAll" }]),
],
},
// { role: 'viewMenu' }
{
label: "View",
submenu: [
{ role: "reload" },
{ role: "forceReload" },
{ type: "separator" },
{ role: "resetZoom" },
{
role: "zoomIn",
accelerator: process.platform === "darwin" ? "Control+=" : "Control+=",
},
{ role: "zoomOut" },
{ type: "separator" },
{ role: "togglefullscreen" },
],
},
// { role: 'windowMenu' }
{
label: "Window",
submenu: [
{ role: "minimize" },
{ role: "zoom" },
...(isMac
? [
{ type: "separator" },
{ role: "front" },
{ type: "separator" },
{ role: "window" },
]
: [{ role: "close" }]),
],
},
];
const menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
function createWindow() {
const win = new BrowserWindow({
width: 1181,
height: 670,
icon: "./icon.png",
webPreferences: {
nodeIntegration: true,
devTools: false,
autoHideMenuBar: true,
},
});
win.loadURL("https://agam778.gitlab.io/Microsoft-Office-Electron/", {
userAgent:
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36",
});
}
app.whenReady().then(createWindow);
app.on("window-all-closed", () => {
if (process.platform !== "darwin") {
app.quit();
}
});
app.on("activate", () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow();
}
});
try {
require("electron-reloader")(module);
} catch (_) {}
app.on("ready", function () {
isOnline().then((online) => {
if (online) {
console.log("You are connected to the internet!");
} else {
const options = {
type: "warning",
buttons: ["Ok"],
defaultId: 2,
title: "Warning",
message: "You appear to be offline!",
detail:
"Please check your Internet Connectivity. This app cannot run without an Internet Connection!",
};
dialog.showMessageBox(null, options, (response, checkboxChecked) => {
console.log(response);
});
}
});
autoUpdater.checkForUpdatesAndNotify();
});

View File

@@ -1,86 +0,0 @@
{
"name": "ms-office-electron",
"version": "0.3.0",
"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"
},
"build": {
"extraFiles": [
"index.html",
"Intro Image.png",
"Loading.gif",
"icon.png",
"icon.ico",
"license.txt",
"icon2.png"
],
"appId": "com.agampreet.microsoft-office-electron",
"productName": "MS Office - Electron",
"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": "icon.png",
"artifactName": "MS-Office-Electron-Setup-${version}-x86_64.${ext}",
"executableName": "MS Office - Electron",
"maintainer": "Agampreet Singh <agam778@zohomail.in>",
"target": [
"deb",
"rpm"
]
},
"deb": {
"compression": "bzip2"
},
"mac": {
"category": "public.app-category.office",
"target": [
"dmg"
]
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": false,
"license": "license.txt"
},
"win": {
"target": [
"nsis"
]
},
"directories": {
"output": "release"
}
},
"scripts": {
"start": "electron .",
"pack": "electron-builder --dir",
"dist": "electron-builder"
},
"author": {
"author": "Agampreet Singh",
"email": "agam778singh@outlook.com",
"url": "https://agam778.is-a.dev/"
},
"license": "MIT",
"devDependencies": {
"electron": "^15.1.1",
"electron-builder": "^22.11.7"
},
"dependencies": {
"about-window": "^1.15.0",
"electron-updater": "^4.3.9",
"is-online": "^9.0.1",
"node-notifier": "^10.0.0"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 504 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2021 Agampreet Singh Bajaj
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -1,186 +0,0 @@
const { app, Menu, BrowserWindow, globalShortcut } = require("electron");
const { dialog } = require("electron");
const openAboutWindow = require("about-window").default;
const join = require("path").join;
const isMac = process.platform === "darwin";
const path = require("path");
const electron = require("electron");
const { autoUpdater } = require("electron-updater");
const isOnline = require("is-online");
const template = [
// { role: 'appMenu' }
...(isMac
? [
{
label: app.name,
submenu: [
{ role: "about" },
{ type: "separator" },
{ role: "services" },
{ type: "separator" },
{ role: "hide" },
{ role: "hideothers" },
{ role: "unhide" },
{ type: "separator" },
{ role: "quit" },
],
},
]
: []),
// { role: 'fileMenu' }
{
label: "Application",
submenu: [
{
label: "About MS Office - Electron",
click: () =>
openAboutWindow({
icon_path:
"https://github.com/agam778/MS-Office-Electron/blob/main/icon2.png?raw=true",
product_name: "MS Office - Electron",
copyright: "Copyright (c) 2021 Agampreet Singh Bajaj",
package_json_dir: __dirname,
bug_report_url:
"https://github.com/agam778/Microsoft-Office-Electron/issues/",
bug_link_text: "Report an issue",
adjust_window_size: "2",
show_close_button: "Close",
}),
},
{
label: "Learn More",
click: async () => {
const { shell } = require("electron");
await shell.openExternal(
"https://github.com/agam778/MS-Office-Electron"
);
},
},
{ type: "separator" },
{
role: "quit",
accelerator: process.platform === "darwin" ? "Ctrl+Q" : "Ctrl+Q",
},
],
},
// { role: 'editMenu' }
{
label: "Edit",
submenu: [
{ role: "undo" },
{ role: "redo" },
{ type: "separator" },
{ role: "cut" },
{ role: "copy" },
{ role: "paste" },
...(isMac
? [
{ role: "pasteAndMatchStyle" },
{ role: "delete" },
{ role: "selectAll" },
{ type: "separator" },
{
label: "Speech",
submenu: [{ role: "startSpeaking" }, { role: "stopSpeaking" }],
},
]
: [{ role: "delete" }, { type: "separator" }, { role: "selectAll" }]),
],
},
// { role: 'viewMenu' }
{
label: "View",
submenu: [
{ role: "reload" },
{ role: "forceReload" },
{ type: "separator" },
{ role: "resetZoom" },
{
role: "zoomIn",
accelerator: process.platform === "darwin" ? "Control+=" : "Control+=",
},
{ role: "zoomOut" },
{ type: "separator" },
{ role: "togglefullscreen" },
],
},
// { role: 'windowMenu' }
{
label: "Window",
submenu: [
{ role: "minimize" },
{ role: "zoom" },
...(isMac
? [
{ type: "separator" },
{ role: "front" },
{ type: "separator" },
{ role: "window" },
]
: [{ role: "close" }]),
],
},
];
const menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
function createWindow() {
const win = new BrowserWindow({
width: 1181,
height: 670,
icon: "./icon.icns",
webPreferences: {
nodeIntegration: true,
devTools: false,
autoHideMenuBar: true,
},
});
win.loadURL("https://agam778.gitlab.io/Microsoft-Office-Electron/", {
userAgent:
"Mozilla/5.0 (Macintosh; Intel Mac OS X 11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36",
});
}
app.whenReady().then(createWindow);
app.on("window-all-closed", () => {
if (process.platform !== "darwin") {
app.quit();
}
});
app.on("activate", () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow();
}
});
try {
require("electron-reloader")(module);
} catch (_) {}
app.on("ready", function () {
isOnline().then((online) => {
if (online) {
console.log("You are connected to the internet!");
} else {
const options = {
type: "warning",
buttons: ["Ok"],
defaultId: 2,
title: "Warning",
message: "You appear to be offline!",
detail:
"Please check your Internet Connectivity. This app cannot run without an Internet Connection!",
};
dialog.showMessageBox(null, options, (response, checkboxChecked) => {
console.log(response);
});
}
});
autoUpdater.checkForUpdatesAndNotify();
});

View File

@@ -1,88 +0,0 @@
{
"name": "ms-office-electron",
"version": "0.3.0",
"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"
},
"build": {
"extraFiles": [
"index.html",
"Intro Image.png",
"Loading.gif",
"icon.png",
"icon.ico",
"icon.icns",
"license.txt",
"icon2.png"
],
"appId": "com.agampreet.microsoft-office-electron",
"productName": "MS Office - Electron",
"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": "icon.icns",
"artifactName": "MS-Office-Electron-Setup-${version}-x86_64.${ext}",
"executableName": "MS Office - Electron",
"maintainer": "Agampreet Singh <agam778@zohomail.in>",
"target": [
"deb",
"rpm"
]
},
"deb": {
"compression": "bzip2"
},
"mac": {
"category": "public.app-category.office",
"target": [
"dmg"
]
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": false,
"license": "license.txt",
"artifactName": "MS-Office-Electron-Setup-${version}-x86_64.${ext}"
},
"win": {
"target": [
"nsis"
]
},
"directories": {
"output": "release"
}
},
"scripts": {
"start": "electron .",
"pack": "electron-builder --dir",
"dist": "electron-builder"
},
"author": {
"author": "Agampreet Singh",
"email": "agam778singh@outlook.com",
"url": "https://agam778.is-a.dev/"
},
"license": "MIT",
"devDependencies": {
"electron": "^15.1.1",
"electron-builder": "^22.11.7"
},
"dependencies": {
"about-window": "^1.15.0",
"electron-updater": "^4.3.9",
"is-online": "^9.0.1",
"node-notifier": "^10.0.0"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 504 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -1,24 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="3; URL=https://office.com/?auth=1" />
<title>Microsoft Office - Electron</title>
<link rel="stylesheet" type="text/css" href="./styles.css">
</head>
<body><center>
<font face="Arial">
<br><br>
<h1>This is Microsoft Office - Electron</h1><br>
No Money Needed. Free of Cost Microsoft Office made with ElectronJS<br><br>
If you want to use Dark Mode, Please set the theme to Black in Microsoft Office
<br><br><br>Please wait while the website loads.<br><br><br><br>
<img alt="Loading" src="./Loading.gif">
<script>
// You can also require other files to run in this process
require('./renderer.js')
</script>
</font>
</center>
</body>
</html>

View File

@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2021 Agampreet Singh
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -1,186 +0,0 @@
const { app, Menu, BrowserWindow, globalShortcut } = require("electron");
const { dialog } = require("electron");
const openAboutWindow = require("about-window").default;
const join = require("path").join;
const isMac = process.platform === "darwin";
const path = require("path");
const electron = require("electron");
const { autoUpdater } = require("electron-updater");
const isOnline = require("is-online");
const template = [
// { role: 'appMenu' }
...(isMac
? [
{
label: app.name,
submenu: [
{ role: "about" },
{ type: "separator" },
{ role: "services" },
{ type: "separator" },
{ role: "hide" },
{ role: "hideothers" },
{ role: "unhide" },
{ type: "separator" },
{ role: "quit" },
],
},
]
: []),
// { role: 'fileMenu' }
{
label: "Application",
submenu: [
{
label: "About MS Office - Electron",
click: () =>
openAboutWindow({
icon_path:
"https://github.com/agam778/MS-Office-Electron/blob/main/icon2.png?raw=true",
product_name: "MS Office - Electron",
copyright: "Copyright (c) 2021 Agampreet Singh Bajaj",
package_json_dir: __dirname,
bug_report_url:
"https://github.com/agam778/Microsoft-Office-Electron/issues/",
bug_link_text: "Report an issue",
adjust_window_size: "2",
show_close_button: "Close",
}),
},
{
label: "Learn More",
click: async () => {
const { shell } = require("electron");
await shell.openExternal(
"https://github.com/agam778/MS-Office-Electron"
);
},
},
{ type: "separator" },
{
role: "quit",
accelerator: process.platform === "darwin" ? "Ctrl+Q" : "Ctrl+Q",
},
],
},
// { role: 'editMenu' }
{
label: "Edit",
submenu: [
{ role: "undo" },
{ role: "redo" },
{ type: "separator" },
{ role: "cut" },
{ role: "copy" },
{ role: "paste" },
...(isMac
? [
{ role: "pasteAndMatchStyle" },
{ role: "delete" },
{ role: "selectAll" },
{ type: "separator" },
{
label: "Speech",
submenu: [{ role: "startSpeaking" }, { role: "stopSpeaking" }],
},
]
: [{ role: "delete" }, { type: "separator" }, { role: "selectAll" }]),
],
},
// { role: 'viewMenu' }
{
label: "View",
submenu: [
{ role: "reload" },
{ role: "forceReload" },
{ type: "separator" },
{ role: "resetZoom" },
{
role: "zoomIn",
accelerator: process.platform === "darwin" ? "Control+=" : "Control+=",
},
{ role: "zoomOut" },
{ type: "separator" },
{ role: "togglefullscreen" },
],
},
// { role: 'windowMenu' }
{
label: "Window",
submenu: [
{ role: "minimize" },
{ role: "zoom" },
...(isMac
? [
{ type: "separator" },
{ role: "front" },
{ type: "separator" },
{ role: "window" },
]
: [{ role: "close" }]),
],
},
];
const menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
function createWindow() {
const win = new BrowserWindow({
width: 1181,
height: 670,
icon: "./icon.ico",
webPreferences: {
nodeIntegration: true,
devTools: false,
autoHideMenuBar: true,
},
});
win.loadURL("https://agam778.gitlab.io/Microsoft-Office-Electron/", {
userAgent:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36",
});
}
app.whenReady().then(createWindow);
app.on("window-all-closed", () => {
if (process.platform !== "darwin") {
app.quit();
}
});
app.on("activate", () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow();
}
});
try {
require("electron-reloader")(module);
} catch (_) {}
app.on("ready", function () {
isOnline().then((online) => {
if (online) {
console.log("You are connected to the internet!");
} else {
const options = {
type: "warning",
buttons: ["Ok"],
defaultId: 2,
title: "Warning",
message: "You appear to be offline!",
detail:
"Please check your Internet Connectivity. This app cannot run without an Internet Connection!",
};
dialog.showMessageBox(null, options, (response, checkboxChecked) => {
console.log(response);
});
}
});
autoUpdater.checkForUpdatesAndNotify();
});

19
MSlogo.svg Normal file
View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="57px" height="30px" viewBox="0 0 57 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 45.2 (43514) - http://www.bohemiancoding.com/sketch -->
<title>MDlogo</title>
<desc>Created with Sketch.</desc>
<defs/>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" font-size="42">
<g id="thumb" transform="translate(-4.000000, -18.000000)">
<g id="MD" transform="translate(2.000000, 4.000000)">
<text id="M" font-family="Roboto-Black, Roboto" font-weight="700" letter-spacing="5.46875048" fill="#000000">
<tspan x="0.0136716366" y="44">M</tspan>
</text>
<text id="D" font-family="Roboto-Light, Roboto" font-weight="300" letter-spacing="5.46875" fill="#A8244F">
<tspan x="33.484375" y="44">S</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -1,4 +1,4 @@
<p align="center"><img src="https://github.com/agam778/Microsoft-Office-Electron/blob/main/Intro%20Image.png?raw=true" alt="Intro Image"></p>
<p align="center"><img src="https://github.com/agam778/Microsoft-Office-Electron/blob/main/Intro_Image.png?raw=true" alt="Intro Image"></p>
<p align="center">An Unofficial Microsoft Office Online Desktop Client made with Electron. Free of Cost.</p>
@@ -82,8 +82,6 @@ For Installing this app on Windows :-
## 💿 macOS Installation
### Note - Thanks a lot to [@RickRollMaster101](https://github.com/RickRollMaster101) for the macOS builds 🥳🥳 (As I don't have a MacBook 😅)
For Installing this app on Mac :-
1. Just go to the [Releases](https://github.com/agam778/Microsoft-Office-Electron/releases) page

View File

@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2021 Agampreet Singh Bajaj
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -1,10 +1,13 @@
const { app, Menu, BrowserWindow, globalShortcut } = require("electron");
const { dialog } = require("electron");
const {
app,
Menu,
BrowserWindow,
globalShortcut,
electron,
dialog,
} = require("electron");
const openAboutWindow = require("about-window").default;
const join = require("path").join;
const isMac = process.platform === "darwin";
const path = require("path");
const electron = require("electron");
const { autoUpdater } = require("electron-updater");
const isOnline = require("is-online");
@@ -39,10 +42,10 @@ const template = [
icon_path:
"https://github.com/agam778/MS-Office-Electron/blob/main/icon2.png?raw=true",
product_name: "MS Office - Electron",
copyright: "Copyright (c) 2021 Agampreet Singh Bajaj",
copyright: "Copyright (c) 2021 Agampreet Singh",
package_json_dir: __dirname,
bug_report_url:
"https://github.com/agam778/Microsoft-Office-Electron/issues/",
"https://github.com/agam778/MS-Office-Electron/issues/",
bug_link_text: "Report an issue",
adjust_window_size: "2",
show_close_button: "Close",
@@ -140,7 +143,7 @@ function createWindow() {
win.loadURL("https://agam778.gitlab.io/Microsoft-Office-Electron/", {
userAgent:
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36",
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36",
});
}
@@ -158,10 +161,6 @@ app.on("activate", () => {
}
});
try {
require("electron-reloader")(module);
} catch (_) {}
app.on("ready", function () {
isOnline().then((online) => {
if (online) {
@@ -177,9 +176,7 @@ app.on("ready", function () {
"Please check your Internet Connectivity. This app cannot run without an Internet Connection!",
};
dialog.showMessageBox(null, options, (response, checkboxChecked) => {
console.log(response);
});
dialog.showMessageBox(null, options);
}
});
autoUpdater.checkForUpdatesAndNotify();

42
not.travis.yml Normal file
View File

@@ -0,0 +1,42 @@
matrix:
include:
- os: osx
osx_image: xcode12.5
language: node_js
node_js: "16"
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- os: linux
services: docker
language: generic
dist: focal
cache:
yarn: true
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
script:
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker run --rm \
-e GH_TOKEN=$GH_TOKEN \
-v ${PWD}:/project \
-v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:wine \
/bin/bash -c "yarn --link-duplicates --pure-lockfile && yarn dist --x64 --linux --win --publish always"
else
npm run dist --x64; npm run dist --arm64
fi
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"

View File

@@ -1,6 +1,6 @@
{
"name": "ms-office-electron",
"version": "0.3.0",
"version": "0.3.2",
"description": "An Unofficial Microsoft Office Online Desktop Client. Free of Cost.",
"main": "main.js",
"repository": {
@@ -9,16 +9,12 @@
},
"build": {
"extraFiles": [
"index.html",
"Intro Image.png",
"Loading.gif",
"icon.png",
"icon.ico",
"license.txt",
"icon2.png"
],
"appId": "com.agampreet.microsoft-office-electron",
"productName": "MS Office - Electron",
"appId": "com.agampreet.ms-office-electron",
"productName": "MS-Office-Electron",
"linux": {
"category": "Office",
"desktop": {
@@ -31,11 +27,12 @@
},
"icon": "icon.png",
"artifactName": "MS-Office-Electron-Setup-${version}-x86_64.${ext}",
"executableName": "MS Office - Electron",
"executableName": "MS-Office-Electron",
"maintainer": "Agampreet Singh <agam778@zohomail.in>",
"target": [
"deb",
"rpm"
"rpm",
"AppImage"
]
},
"deb": {
@@ -51,7 +48,7 @@
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": false,
"license": "license.txt",
"license": "LICENSE",
"artifactName": "MS-Office-Electron-Setup-${version}-x86_64.${ext}"
},
"win": {
@@ -69,19 +66,18 @@
"dist": "electron-builder"
},
"author": {
"author": "Agampreet Singh",
"email": "agam778singh@outlook.com",
"name": "Agampreet Singh",
"email": "agam778@zohomail.in",
"url": "https://agam778.is-a.dev/"
},
"license": "MIT",
"devDependencies": {
"electron": "^15.1.1",
"electron-builder": "^22.11.7"
"electron": "^15.2.0",
"electron-builder": "^22.13.1"
},
"dependencies": {
"about-window": "^1.15.0",
"electron-updater": "^4.3.9",
"is-online": "^9.0.1",
"node-notifier": "^10.0.0"
"is-online": "^9.0.1"
}
}

2116
yarn.lock Normal file

File diff suppressed because it is too large Load Diff