Updated Source code for v0.1.1 build

This commit is contained in:
Agampreet Singh
2021-06-22 10:25:58 +05:30
parent 3e7999cd35
commit a0817f6431
16 changed files with 730 additions and 580 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 919 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

View File

@@ -2,6 +2,8 @@ const { app, Menu, BrowserWindow } = require('electron')
const openAboutWindow = require('about-window').default;
const join = require('path').join;
const isMac = process.platform === 'darwin'
const electron = require('electron')
const {autoUpdater} = require("electron-updater");
const template = [
// { role: 'appMenu' }
@@ -21,7 +23,7 @@ const template = [
}] : []),
// { role: 'fileMenu' }
{
label: 'Microsoft Office - Electron',
label: 'Application',
submenu: [
{
label: 'About Microsoft Office - Electron',
@@ -91,7 +93,8 @@ const template = [
{ role: 'toggleDevTools' },
{ type: 'separator' },
{ role: 'resetZoom' },
{ role: 'zoomIn' },
{ role: 'zoomIn',
accelerator: process.platform === 'darwin' ? 'Control+=' : 'Control+=' },
{ role: 'zoomOut' },
{ type: 'separator' },
{ role: 'togglefullscreen' }
@@ -145,3 +148,11 @@ app.on('activate', () => {
createWindow()
}
})
try {
require('electron-reloader')(module)
} catch (_) {}
app.on('ready', function() {
autoUpdater.checkForUpdatesAndNotify();
});

View File

@@ -1,6 +1,6 @@
{
"name": "microsoft-office-electron",
"version": "0.1.0",
"version": "0.1.1",
"description": "An Unofficial Microsoft Office Online Desktop Client. Free of Cost.",
"main": "main.js",
"repository": {
@@ -31,7 +31,7 @@
},
"icon": "icon.png",
"executableName": "microsoft-office-electron",
"maintainer": "Agampreet Singh <agampreet628@gmail.com>",
"maintainer": "Agampreet Singh <agam778singh@outlook.com>",
"target": [
"deb",
"rpm"
@@ -65,16 +65,20 @@
},
"author": {
"author": "Agampreet Singh",
"email": "agampreet628@gmail.com",
"email": "agam778singh@outlook.com",
"url": "https://agam778.github.io/"
},
"license": "MIT",
"devDependencies": {
"electron": "^12.0.0",
"electron-builder": "^22.10.5"
"electron-builder": "^22.10.5",
"electron-reloader": "^1.2.1"
},
"dependencies": {
"about-window": "^1.14.0",
"electron-updater": "^4.3.8"
"custom-electron-titlebar": "^3.2.7",
"electron-reload": "^1.5.0",
"electron-updater": "^4.3.9",
"update-electron-app": "^2.0.1"
}
}

File diff suppressed because it is too large Load Diff