mirror of
https://github.com/agam778/MS-365-Electron.git
synced 2026-02-17 09:02:10 +00:00
Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7c41729f5 | ||
|
|
2c0ba89494 | ||
|
|
ae77dcc2d8 | ||
|
|
bc3c6425e6 | ||
|
|
10d3aa556c | ||
|
|
318e0b0010 | ||
|
|
c0985aa6e2 | ||
|
|
420e3ef1f8 | ||
|
|
c78f84b546 | ||
|
|
4a44b7357e | ||
|
|
b4b0f1e119 | ||
|
|
062a6c90ee | ||
|
|
16c8f568a6 |
17
.github/stale.yml
vendored
Normal file
17
.github/stale.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# Number of days of inactivity before an issue becomes stale
|
||||
daysUntilStale: 30
|
||||
# Number of days of inactivity before a stale issue is closed
|
||||
daysUntilClose: 7
|
||||
# Issues with these labels will never be considered stale
|
||||
exemptLabels:
|
||||
- pinned
|
||||
- security
|
||||
# Label to use when marking an issue as stale
|
||||
staleLabel: stale
|
||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This issue has been automatically marked as stale because it has not had
|
||||
recent activity. It will be closed if no further activity occurs. Thank you
|
||||
for your contributions.
|
||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||
closeComment: false
|
||||
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 Agampreet Singh Bajaj
|
||||
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
|
||||
|
||||
@@ -1,180 +1,186 @@
|
||||
const { app, Menu, BrowserWindow } = 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 { 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' }
|
||||
]
|
||||
}] : []),
|
||||
...(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',
|
||||
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: "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',
|
||||
label: "Learn More",
|
||||
click: async () => {
|
||||
const { shell } = require('electron');
|
||||
await shell.openExternal('https://github.com/agam778/MS-Office-Electron');
|
||||
}
|
||||
},
|
||||
{type:'separator'},
|
||||
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: "quit",
|
||||
accelerator: process.platform === "darwin" ? "Ctrl+Q" : "Ctrl+Q",
|
||||
},
|
||||
],
|
||||
},
|
||||
// { role: 'editMenu' }
|
||||
{
|
||||
label: 'Edit',
|
||||
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: "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: "delete" }, { type: "separator" }, { role: "selectAll" }]),
|
||||
],
|
||||
},
|
||||
// { role: 'viewMenu' }
|
||||
{
|
||||
label: 'View',
|
||||
label: "View",
|
||||
submenu: [
|
||||
{ role: 'reload' },
|
||||
{ role: 'forceReload' },
|
||||
{ role: 'toggleDevTools' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'resetZoom' },
|
||||
{ role: 'zoomIn',
|
||||
accelerator: process.platform === 'darwin' ? 'Control+=' : 'Control+=' },
|
||||
{ role: 'zoomOut' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'togglefullscreen' }
|
||||
]
|
||||
{ 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',
|
||||
label: "Window",
|
||||
submenu: [
|
||||
{ role: 'minimize' },
|
||||
{ role: 'zoom' },
|
||||
...(isMac ? [
|
||||
{ type: 'separator' },
|
||||
{ role: 'front' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'window' }
|
||||
] : [
|
||||
{ role: 'close' }
|
||||
])
|
||||
]
|
||||
}
|
||||
]
|
||||
{ role: "minimize" },
|
||||
{ role: "zoom" },
|
||||
...(isMac
|
||||
? [
|
||||
{ type: "separator" },
|
||||
{ role: "front" },
|
||||
{ type: "separator" },
|
||||
{ role: "window" },
|
||||
]
|
||||
: [{ role: "close" }]),
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const menu = Menu.buildFromTemplate(template)
|
||||
Menu.setApplicationMenu(menu)
|
||||
const menu = Menu.buildFromTemplate(template);
|
||||
Menu.setApplicationMenu(menu);
|
||||
|
||||
function createWindow () {
|
||||
function createWindow() {
|
||||
const win = new BrowserWindow({
|
||||
width: 1181,
|
||||
height: 670,
|
||||
icon: './icon.png',
|
||||
icon: "./icon.png",
|
||||
webPreferences: {
|
||||
nodeIntegration: true
|
||||
}
|
||||
})
|
||||
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/91.0.4472.164 Safari/537.36'});
|
||||
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.whenReady().then(createWindow);
|
||||
|
||||
app.on('window-all-closed', () => {
|
||||
if (process.platform !== 'darwin') {
|
||||
app.quit()
|
||||
app.on("window-all-closed", () => {
|
||||
if (process.platform !== "darwin") {
|
||||
app.quit();
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
app.on('activate', () => {
|
||||
app.on("activate", () => {
|
||||
if (BrowserWindow.getAllWindows().length === 0) {
|
||||
createWindow()
|
||||
createWindow();
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
try {
|
||||
require('electron-reloader')(module)
|
||||
require("electron-reloader")(module);
|
||||
} catch (_) {}
|
||||
|
||||
app.on('ready', function() {
|
||||
isOnline().then(online => {
|
||||
if(online){
|
||||
console.log("You are connected to the internet!");
|
||||
}else{
|
||||
app.on("ready", function () {
|
||||
isOnline().then((online) => {
|
||||
if (online) {
|
||||
console.log("You are connected to the internet!");
|
||||
} else {
|
||||
const options = {
|
||||
type: 'warning',
|
||||
buttons: ['Ok'],
|
||||
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!',
|
||||
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();
|
||||
});
|
||||
|
||||
@@ -1,89 +1,85 @@
|
||||
{
|
||||
"name": "ms-office-electron",
|
||||
"version": "0.2.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"
|
||||
},
|
||||
"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": "${productName}-Setup-${version}-x86_64.${ext}",
|
||||
"executableName": "MS Office - Electron",
|
||||
"maintainer": "Agampreet Singh <agam778@zohomail.in>",
|
||||
"target": [
|
||||
"AppImage"
|
||||
]
|
||||
"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;"
|
||||
},
|
||||
"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": "agam778@zohomail.in",
|
||||
"url": "https://agam778.github.io/"
|
||||
},
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"electron": "^12.0.0",
|
||||
"electron-builder": "^22.10.5",
|
||||
"electron-reloader": "^1.2.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"about-window": "^1.14.0",
|
||||
"custom-electron-titlebar": "^3.2.7",
|
||||
"electron-reload": "^1.5.0",
|
||||
"electron-updater": "^4.3.9",
|
||||
"is-online": "^9.0.1",
|
||||
"node-notifier": "^10.0.0",
|
||||
"update-electron-app": "^2.0.1"
|
||||
}
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
0
MS-Office-Electron-Linux-AppImage/renderer.js
Normal file
0
MS-Office-Electron-Linux-AppImage/renderer.js
Normal file
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 Agampreet Singh Bajaj
|
||||
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
|
||||
|
||||
@@ -1,180 +1,186 @@
|
||||
const { app, Menu, BrowserWindow } = 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 { 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' }
|
||||
]
|
||||
}] : []),
|
||||
...(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',
|
||||
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: "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',
|
||||
label: "Learn More",
|
||||
click: async () => {
|
||||
const { shell } = require('electron');
|
||||
await shell.openExternal('https://github.com/agam778/MS-Office-Electron');
|
||||
}
|
||||
},
|
||||
{type:'separator'},
|
||||
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: "quit",
|
||||
accelerator: process.platform === "darwin" ? "Ctrl+Q" : "Ctrl+Q",
|
||||
},
|
||||
],
|
||||
},
|
||||
// { role: 'editMenu' }
|
||||
{
|
||||
label: 'Edit',
|
||||
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: "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: "delete" }, { type: "separator" }, { role: "selectAll" }]),
|
||||
],
|
||||
},
|
||||
// { role: 'viewMenu' }
|
||||
{
|
||||
label: 'View',
|
||||
label: "View",
|
||||
submenu: [
|
||||
{ role: 'reload' },
|
||||
{ role: 'forceReload' },
|
||||
{ role: 'toggleDevTools' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'resetZoom' },
|
||||
{ role: 'zoomIn',
|
||||
accelerator: process.platform === 'darwin' ? 'Control+=' : 'Control+=' },
|
||||
{ role: 'zoomOut' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'togglefullscreen' }
|
||||
]
|
||||
{ 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',
|
||||
label: "Window",
|
||||
submenu: [
|
||||
{ role: 'minimize' },
|
||||
{ role: 'zoom' },
|
||||
...(isMac ? [
|
||||
{ type: 'separator' },
|
||||
{ role: 'front' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'window' }
|
||||
] : [
|
||||
{ role: 'close' }
|
||||
])
|
||||
]
|
||||
}
|
||||
]
|
||||
{ role: "minimize" },
|
||||
{ role: "zoom" },
|
||||
...(isMac
|
||||
? [
|
||||
{ type: "separator" },
|
||||
{ role: "front" },
|
||||
{ type: "separator" },
|
||||
{ role: "window" },
|
||||
]
|
||||
: [{ role: "close" }]),
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const menu = Menu.buildFromTemplate(template)
|
||||
Menu.setApplicationMenu(menu)
|
||||
const menu = Menu.buildFromTemplate(template);
|
||||
Menu.setApplicationMenu(menu);
|
||||
|
||||
function createWindow () {
|
||||
function createWindow() {
|
||||
const win = new BrowserWindow({
|
||||
width: 1181,
|
||||
height: 670,
|
||||
icon: './icon.png',
|
||||
icon: "./icon.png",
|
||||
webPreferences: {
|
||||
nodeIntegration: true
|
||||
}
|
||||
})
|
||||
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/91.0.4472.164 Safari/537.36'});
|
||||
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.whenReady().then(createWindow);
|
||||
|
||||
app.on('window-all-closed', () => {
|
||||
if (process.platform !== 'darwin') {
|
||||
app.quit()
|
||||
app.on("window-all-closed", () => {
|
||||
if (process.platform !== "darwin") {
|
||||
app.quit();
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
app.on('activate', () => {
|
||||
app.on("activate", () => {
|
||||
if (BrowserWindow.getAllWindows().length === 0) {
|
||||
createWindow()
|
||||
createWindow();
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
try {
|
||||
require('electron-reloader')(module)
|
||||
require("electron-reloader")(module);
|
||||
} catch (_) {}
|
||||
|
||||
app.on('ready', function() {
|
||||
isOnline().then(online => {
|
||||
if(online){
|
||||
console.log("You are connected to the internet!");
|
||||
}else{
|
||||
app.on("ready", function () {
|
||||
isOnline().then((online) => {
|
||||
if (online) {
|
||||
console.log("You are connected to the internet!");
|
||||
} else {
|
||||
const options = {
|
||||
type: 'warning',
|
||||
buttons: ['Ok'],
|
||||
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!',
|
||||
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();
|
||||
});
|
||||
|
||||
@@ -1,89 +1,86 @@
|
||||
{
|
||||
"name": "ms-office-electron",
|
||||
"version": "0.2.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"
|
||||
},
|
||||
"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",
|
||||
"executableName": "MS Office - Electron",
|
||||
"maintainer": "Agampreet Singh <agam778@zohomail.in>",
|
||||
"target": [
|
||||
"deb",
|
||||
"rpm"
|
||||
]
|
||||
"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;"
|
||||
},
|
||||
"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": "agam778@zohomail.in",
|
||||
"url": "https://agam778.github.io/"
|
||||
},
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"electron": "^12.0.0",
|
||||
"electron-builder": "^22.10.5",
|
||||
"electron-reloader": "^1.2.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"about-window": "^1.14.0",
|
||||
"custom-electron-titlebar": "^3.2.7",
|
||||
"electron-reload": "^1.5.0",
|
||||
"electron-updater": "^4.3.9",
|
||||
"is-online": "^9.0.1",
|
||||
"node-notifier": "^10.0.0",
|
||||
"update-electron-app": "^2.0.1"
|
||||
}
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
0
MS-Office-Electron-Linux/renderer.js
Normal file
0
MS-Office-Electron-Linux/renderer.js
Normal file
@@ -1,180 +1,186 @@
|
||||
const { app, Menu, BrowserWindow } = 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 { 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' }
|
||||
]
|
||||
}] : []),
|
||||
...(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',
|
||||
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: "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',
|
||||
label: "Learn More",
|
||||
click: async () => {
|
||||
const { shell } = require('electron');
|
||||
await shell.openExternal('https://github.com/agam778/MS-Office-Electron');
|
||||
}
|
||||
},
|
||||
{type:'separator'},
|
||||
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: "quit",
|
||||
accelerator: process.platform === "darwin" ? "Ctrl+Q" : "Ctrl+Q",
|
||||
},
|
||||
],
|
||||
},
|
||||
// { role: 'editMenu' }
|
||||
{
|
||||
label: 'Edit',
|
||||
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: "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: "delete" }, { type: "separator" }, { role: "selectAll" }]),
|
||||
],
|
||||
},
|
||||
// { role: 'viewMenu' }
|
||||
{
|
||||
label: 'View',
|
||||
label: "View",
|
||||
submenu: [
|
||||
{ role: 'reload' },
|
||||
{ role: 'forceReload' },
|
||||
{ role: 'toggleDevTools' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'resetZoom' },
|
||||
{ role: 'zoomIn',
|
||||
accelerator: process.platform === 'darwin' ? 'Control+=' : 'Control+=' },
|
||||
{ role: 'zoomOut' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'togglefullscreen' }
|
||||
]
|
||||
{ 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',
|
||||
label: "Window",
|
||||
submenu: [
|
||||
{ role: 'minimize' },
|
||||
{ role: 'zoom' },
|
||||
...(isMac ? [
|
||||
{ type: 'separator' },
|
||||
{ role: 'front' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'window' }
|
||||
] : [
|
||||
{ role: 'close' }
|
||||
])
|
||||
]
|
||||
}
|
||||
]
|
||||
{ role: "minimize" },
|
||||
{ role: "zoom" },
|
||||
...(isMac
|
||||
? [
|
||||
{ type: "separator" },
|
||||
{ role: "front" },
|
||||
{ type: "separator" },
|
||||
{ role: "window" },
|
||||
]
|
||||
: [{ role: "close" }]),
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const menu = Menu.buildFromTemplate(template)
|
||||
Menu.setApplicationMenu(menu)
|
||||
const menu = Menu.buildFromTemplate(template);
|
||||
Menu.setApplicationMenu(menu);
|
||||
|
||||
function createWindow () {
|
||||
function createWindow() {
|
||||
const win = new BrowserWindow({
|
||||
width: 1181,
|
||||
height: 670,
|
||||
icon: './icon.png',
|
||||
icon: "./icon.icns",
|
||||
webPreferences: {
|
||||
nodeIntegration: true
|
||||
}
|
||||
})
|
||||
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_5_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36'});
|
||||
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.whenReady().then(createWindow);
|
||||
|
||||
app.on('window-all-closed', () => {
|
||||
if (process.platform !== 'darwin') {
|
||||
app.quit()
|
||||
app.on("window-all-closed", () => {
|
||||
if (process.platform !== "darwin") {
|
||||
app.quit();
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
app.on('activate', () => {
|
||||
app.on("activate", () => {
|
||||
if (BrowserWindow.getAllWindows().length === 0) {
|
||||
createWindow()
|
||||
createWindow();
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
try {
|
||||
require('electron-reloader')(module)
|
||||
require("electron-reloader")(module);
|
||||
} catch (_) {}
|
||||
|
||||
app.on('ready', function() {
|
||||
isOnline().then(online => {
|
||||
if(online){
|
||||
console.log("You are connected to the internet!");
|
||||
}else{
|
||||
app.on("ready", function () {
|
||||
isOnline().then((online) => {
|
||||
if (online) {
|
||||
console.log("You are connected to the internet!");
|
||||
} else {
|
||||
const options = {
|
||||
type: 'warning',
|
||||
buttons: ['Ok'],
|
||||
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!',
|
||||
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();
|
||||
});
|
||||
|
||||
@@ -1,89 +1,88 @@
|
||||
{
|
||||
"name": "ms-office-electron",
|
||||
"version": "0.2.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"
|
||||
},
|
||||
"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",
|
||||
"executableName": "MS Office - Electron",
|
||||
"maintainer": "Agampreet Singh <agam778@zohomail.in>",
|
||||
"target": [
|
||||
"deb",
|
||||
"rpm"
|
||||
]
|
||||
"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;"
|
||||
},
|
||||
"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": "agam778@zohomail.in",
|
||||
"url": "https://agam778.github.io/"
|
||||
},
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"electron": "^12.0.0",
|
||||
"electron-builder": "^22.10.5",
|
||||
"electron-reloader": "^1.2.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"about-window": "^1.14.0",
|
||||
"custom-electron-titlebar": "^3.2.7",
|
||||
"electron-reload": "^1.5.0",
|
||||
"electron-updater": "^4.3.9",
|
||||
"is-online": "^9.0.1",
|
||||
"node-notifier": "^10.0.0",
|
||||
"update-electron-app": "^2.0.1"
|
||||
}
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
0
MS-Office-Electron-Mac/renderer.js
Normal file
0
MS-Office-Electron-Mac/renderer.js
Normal file
12
MS-Office-Electron-Windows/.vscode/tasks.json
vendored
12
MS-Office-Electron-Windows/.vscode/tasks.json
vendored
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"type": "npm",
|
||||
"script": "start",
|
||||
"problemMatcher": [],
|
||||
"label": "npm: start",
|
||||
"detail": "electron ."
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 Agampreet Singh Bajaj
|
||||
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
|
||||
|
||||
@@ -1,180 +1,186 @@
|
||||
const { app, Menu, BrowserWindow } = 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 { 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' }
|
||||
]
|
||||
}] : []),
|
||||
...(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',
|
||||
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: "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',
|
||||
label: "Learn More",
|
||||
click: async () => {
|
||||
const { shell } = require('electron');
|
||||
await shell.openExternal('https://github.com/agam778/MS-Office-Electron');
|
||||
}
|
||||
},
|
||||
{type:'separator'},
|
||||
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: "quit",
|
||||
accelerator: process.platform === "darwin" ? "Ctrl+Q" : "Ctrl+Q",
|
||||
},
|
||||
],
|
||||
},
|
||||
// { role: 'editMenu' }
|
||||
{
|
||||
label: 'Edit',
|
||||
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: "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: "delete" }, { type: "separator" }, { role: "selectAll" }]),
|
||||
],
|
||||
},
|
||||
// { role: 'viewMenu' }
|
||||
{
|
||||
label: 'View',
|
||||
label: "View",
|
||||
submenu: [
|
||||
{ role: 'reload' },
|
||||
{ role: 'forceReload' },
|
||||
{ role: 'toggleDevTools' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'resetZoom' },
|
||||
{ role: 'zoomIn',
|
||||
accelerator: process.platform === 'darwin' ? 'Control+=' : 'Control+=' },
|
||||
{ role: 'zoomOut' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'togglefullscreen' }
|
||||
]
|
||||
{ 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',
|
||||
label: "Window",
|
||||
submenu: [
|
||||
{ role: 'minimize' },
|
||||
{ role: 'zoom' },
|
||||
...(isMac ? [
|
||||
{ type: 'separator' },
|
||||
{ role: 'front' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'window' }
|
||||
] : [
|
||||
{ role: 'close' }
|
||||
])
|
||||
]
|
||||
}
|
||||
]
|
||||
{ role: "minimize" },
|
||||
{ role: "zoom" },
|
||||
...(isMac
|
||||
? [
|
||||
{ type: "separator" },
|
||||
{ role: "front" },
|
||||
{ type: "separator" },
|
||||
{ role: "window" },
|
||||
]
|
||||
: [{ role: "close" }]),
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const menu = Menu.buildFromTemplate(template)
|
||||
Menu.setApplicationMenu(menu)
|
||||
const menu = Menu.buildFromTemplate(template);
|
||||
Menu.setApplicationMenu(menu);
|
||||
|
||||
function createWindow () {
|
||||
function createWindow() {
|
||||
const win = new BrowserWindow({
|
||||
width: 1181,
|
||||
height: 670,
|
||||
icon: './icon.png',
|
||||
icon: "./icon.ico",
|
||||
webPreferences: {
|
||||
nodeIntegration: true
|
||||
}
|
||||
})
|
||||
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/92.0.4515.107 Safari/537.36'});
|
||||
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.whenReady().then(createWindow);
|
||||
|
||||
app.on('window-all-closed', () => {
|
||||
if (process.platform !== 'darwin') {
|
||||
app.quit()
|
||||
app.on("window-all-closed", () => {
|
||||
if (process.platform !== "darwin") {
|
||||
app.quit();
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
app.on('activate', () => {
|
||||
app.on("activate", () => {
|
||||
if (BrowserWindow.getAllWindows().length === 0) {
|
||||
createWindow()
|
||||
createWindow();
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
try {
|
||||
require('electron-reloader')(module)
|
||||
require("electron-reloader")(module);
|
||||
} catch (_) {}
|
||||
|
||||
app.on('ready', function() {
|
||||
isOnline().then(online => {
|
||||
if(online){
|
||||
console.log("You are connected to the internet!");
|
||||
}else{
|
||||
app.on("ready", function () {
|
||||
isOnline().then((online) => {
|
||||
if (online) {
|
||||
console.log("You are connected to the internet!");
|
||||
} else {
|
||||
const options = {
|
||||
type: 'warning',
|
||||
buttons: ['Ok'],
|
||||
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!',
|
||||
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();
|
||||
});
|
||||
|
||||
@@ -1,90 +1,87 @@
|
||||
{
|
||||
"name": "ms-office-electron",
|
||||
"version": "0.2.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"
|
||||
},
|
||||
"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",
|
||||
"executableName": "MS Office - Electron",
|
||||
"maintainer": "Agampreet Singh <agam778@zohomail.in>",
|
||||
"target": [
|
||||
"deb",
|
||||
"rpm"
|
||||
]
|
||||
"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;"
|
||||
},
|
||||
"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}.${ext}"
|
||||
},
|
||||
"win": {
|
||||
"target": [
|
||||
"nsis"
|
||||
]
|
||||
},
|
||||
"directories": {
|
||||
"output": "release"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"start": "electron .",
|
||||
"pack": "electron-builder --dir",
|
||||
"dist": "electron-builder"
|
||||
},
|
||||
"author": {
|
||||
"author": "Agampreet Singh",
|
||||
"email": "agam778@zohomail.in",
|
||||
"url": "https://agam778.github.io/"
|
||||
},
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"electron": "^12.0.0",
|
||||
"electron-builder": "^22.10.5",
|
||||
"electron-reloader": "^1.2.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"about-window": "^1.14.0",
|
||||
"custom-electron-titlebar": "^3.2.7",
|
||||
"electron-reload": "^1.5.0",
|
||||
"electron-updater": "^4.3.9",
|
||||
"is-online": "^9.0.1",
|
||||
"node-notifier": "^10.0.0",
|
||||
"update-electron-app": "^2.0.1"
|
||||
}
|
||||
"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",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
0
MS-Office-Electron-Windows/renderer.js
Normal file
0
MS-Office-Electron-Windows/renderer.js
Normal file
25
README.md
25
README.md
@@ -4,7 +4,7 @@
|
||||
|
||||
<p align="center">
|
||||
<a href="https://bit.ly/agamtechtricks">
|
||||
<img align="center" src="https://img.shields.io/badge/Made%20With%20♥-by%20Agam-orange?style=style=flat">
|
||||
<img align="center" src="https://img.shields.io/badge/Made%20With%20♥-by%20Agam-orange?style=style=flat">
|
||||
</a>
|
||||
<a href="https://electronjs.org">
|
||||
<img align="center" src="https://img.shields.io/badge/Developed%20With-Electron-red?logo=Electron&logoColor=white&style=flat">
|
||||
@@ -23,7 +23,6 @@
|
||||
</a>
|
||||
</p>
|
||||
|
||||
|
||||
# Table of contents
|
||||
|
||||
1. [Introduction](#Introduction)
|
||||
@@ -63,11 +62,11 @@ Supported Platforms
|
||||
5. All Distributions supporting AppImage (AppImage File)
|
||||
|
||||
Not uploaded Arch/Manjaro Linux based distributions build to AUR.<br>
|
||||
Mac OS supported now with builds for both M1 And Intel Chips 🎉. See the instructions how to install below
|
||||
Mac OS supported now with builds for both M1 And Intel Chips . See the instructions how to install below<br>
|
||||
|
||||
# Windows
|
||||
|
||||
## 📀 Windows Installation
|
||||
## 💿 Windows Installation
|
||||
|
||||
For Installing this app on Windows :-
|
||||
|
||||
@@ -75,15 +74,17 @@ For Installing this app on Windows :-
|
||||
2) Scroll down and click the `setup.x.x.x.exe` file. The Setup file will start downloading.
|
||||
3) After it downloads, click on the file and proceed with the Installation. You can choose whether to install for only you or all the users on the PC. You can always start the app from Start Menu or from the Desktop Shortcut.
|
||||
|
||||
## Windows Preview
|
||||
## 📸 Windows Preview
|
||||
|
||||
[Click Here](https://github.com/agam778/Microsoft-Office-Electron/blob/main/Preview/Windows%20Preview.png?raw=true)
|
||||
|
||||
# macOS
|
||||
|
||||
## 📀 macOS Installation
|
||||
## 💿 macOS Installation
|
||||
|
||||
For Installing this app on Windows :-
|
||||
### 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
|
||||
2. Scroll down and click the `.dmg` file. The build with no architecture written is for Intel Macs (Will fix it soon) and the build with arm64 written in it is for M1 Macs. Download the build according to your Mac.
|
||||
@@ -91,7 +92,7 @@ For Installing this app on Windows :-
|
||||
|
||||
# Linux
|
||||
|
||||
## 📀 Linux Installation
|
||||
## 💿 Linux Installation
|
||||
|
||||
### Ubuntu/Debian based distribution installation
|
||||
|
||||
@@ -111,20 +112,20 @@ For Installing in Red Hat/Fedora based distribution :-
|
||||
|
||||
### Arch/Manjaro Linux based distribution installation
|
||||
|
||||
I currently have not uploaded the package to AUR but you can install it this way :-
|
||||
I currently have not uploaded the package to AUR (and maybe won't cause i don't have that much time, i'll try tho) but you can install it this way :-
|
||||
|
||||
1) Go to the [Releases](https://github.com/agam778/Microsoft-Office-Electron/releases) page
|
||||
2) Scroll down and click the `.pkg.tar.zst` file to download it.
|
||||
3) Now open terminal and run `sudo pacman -U ./microsoft-office-electron-x.y.z-x86_64.pkg.tar.xz` (Replace x.y.z with version number)
|
||||
|
||||
## Ubuntu Preview
|
||||
## 📸 Ubuntu Preview
|
||||
|
||||
[Click Here](https://github.com/agam778/Microsoft-Office-Electron/blob/main/Preview/Ubuntu%20Preview.png?raw=true)
|
||||
|
||||
## Fedora Preview
|
||||
## 📸 Fedora Preview
|
||||
|
||||
[Click Here](https://raw.githubusercontent.com/agam778/Microsoft-Office-Electron/main/Preview/Fedora%20Preview.png)
|
||||
|
||||
# 📜 MIT License
|
||||
# 📃 MIT License
|
||||
|
||||
#### *Disclaimer: Not affiliated with Microsoft*
|
||||
|
||||
Reference in New Issue
Block a user