Compare commits

...

45 Commits

Author SHA1 Message Date
Agampreet Singh
62932046e4 Handle exception when closing window
- Prevents showing an error if someone tries to close a window with shortcut key if there is no window opened in macOS
2023-12-24 23:16:52 +05:30
Agampreet Singh
6ff03b85b9 Set default value for opening websites in new window 2023-12-24 22:16:05 +05:30
Agampreet Singh
83a1084e06 Update version to 1.1.0 2023-12-24 20:14:37 +05:30
Agampreet Singh
2db6bb827c Update MS 365 account labels in menu (2/2) 2023-12-24 19:56:35 +05:30
Agampreet Singh
9faa1cde1f Update window dimensions in menu.js 2023-12-24 19:54:12 +05:30
Agampreet Singh
6d209c1a5b Introducing separate sessions for Work/School and Personal accounts!
- You might have to login again, sorry for the cute little incovenience
2023-12-24 19:52:25 +05:30
Agampreet Singh
ec2421da96 Update MS 365 account labels in menu 2023-12-24 13:35:28 +05:30
renovate[bot]
09ef206be5 fix(deps): update dependency electron-log to v5.0.2 (#177)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-24 13:30:43 +05:30
Agampreet Singh
e12e5b39b4 Update README 2023-12-23 23:26:12 +05:30
Agampreet Singh
8dceb827d6 Update user-agent strings 2023-12-23 22:34:39 +05:30
Agampreet Singh
92a7b9376d FIx autohide menubar functionality not working when a new window is created (#162) 2023-12-23 13:42:53 +05:30
renovate[bot]
a13d790df3 chore(deps): update dependency electron to v28.1.0 (#175)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-23 13:27:53 +05:30
renovate[bot]
09d24e3948 fix(deps): update dependency @xhayper/discord-rpc to v1.1.2 (#176)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-23 13:27:36 +05:30
Agampreet Singh
2cc3d0c953 Update title to reflect MS-365-Electron 2023-12-21 20:06:07 +05:30
renovate[bot]
d5eba0741f chore(deps): update dependency electron-builder to v24.10.0 (#172)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-20 22:18:42 +05:30
renovate[bot]
102746ec3c chore(deps): update actions/upload-artifact action to v4 (#173)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-20 22:18:32 +05:30
renovate[bot]
529147bf01 chore(deps): update dependency eslint to v8.56.0 (#174)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-20 22:18:03 +05:30
Agampreet Singh
39bd965a90 Remove unused Yarn plugin and update yarn.lock 2023-12-08 19:13:48 +05:30
renovate[bot]
d203b214ec chore(deps): update yarn to v4 (#170)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 22:43:52 +05:30
renovate[bot]
2b0eb255eb fix(deps): update dependency electron-updater to v6.1.7 (#164)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 22:39:15 +05:30
renovate[bot]
876ad5dfb7 fix(deps): update dependency @xhayper/discord-rpc to v1.1.1 (#156)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 22:39:05 +05:30
renovate[bot]
796c4f63fd fix(deps): update dependency @cliqz/adblocker-electron to v1.26.12 (#151)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 22:38:54 +05:30
renovate[bot]
a3ee81bc32 chore(deps): update actions/checkout digest to b4ffde6 (#153)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 22:38:41 +05:30
renovate[bot]
0800464da5 fix(deps): update dependency axios to v1.6.2 (#155)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 22:35:03 +05:30
renovate[bot]
03e009b301 fix(deps): update dependency electron-dl to v3.5.1 (#159)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 22:34:54 +05:30
renovate[bot]
805f5e1587 chore(deps): update dependency electron-builder to v24.9.1 (#166)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 22:34:38 +05:30
renovate[bot]
643b2c134c chore(deps): update actions/setup-node action to v4 (#167)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 22:34:29 +05:30
renovate[bot]
37754a6168 chore(deps): update actions/stale action to v9 (#168)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 22:32:15 +05:30
renovate[bot]
45b287dba6 fix(deps): update dependency electron-log to v5.0.1 (#149)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 22:31:53 +05:30
renovate[bot]
10bf359f15 chore(deps): update dependency electron to v28 (#169)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 22:31:44 +05:30
renovate[bot]
69fd40ba07 fix(deps): update dependency node-gyp to v10 (#171)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 22:30:31 +05:30
renovate[bot]
38359f68d1 chore(deps): update yarn to v3.7.0 (#157)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 22:30:16 +05:30
renovate[bot]
942115fab9 chore(deps): update dependency eslint to v8.55.0 (#154)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 21:43:30 +05:30
renovate[bot]
9647ca2214 chore(deps): update dependency electron to v26 (#143)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-09 12:07:08 +05:30
renovate[bot]
cd7ba5d5b4 chore(deps): update dependency eslint to v8.49.0 (#142)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-09 12:06:45 +05:30
renovate[bot]
13d5a51c67 fix(deps): update dependency @xhayper/discord-rpc to v1.0.22 (#141)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-09 12:06:39 +05:30
renovate[bot]
225f8b2b63 chore(deps): update dependency electron to v25.8.0 (#140)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-09 12:06:33 +05:30
renovate[bot]
3c758d6332 chore(deps): update yarn to v3.6.3 (#144)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-09 12:06:25 +05:30
renovate[bot]
4dd73fc13c fix(deps): update dependency electron-log to v5.0.0-beta.28 (#145)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-09 12:05:54 +05:30
renovate[bot]
7f7b759706 fix(deps): update dependency axios to v1.5.0 (#146)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-09 12:05:43 +05:30
renovate[bot]
b586c1c48c chore(deps): update dependency electron-builder to v24.6.4 (#147)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-09 12:05:36 +05:30
renovate[bot]
eda2165706 chore(deps): update actions/checkout action to v4 (#148)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-09 12:05:29 +05:30
Agampreet Singh
075ddf615e Remove latest downloads button from README 2023-08-08 10:39:56 +05:30
renovate[bot]
2f42a345bf chore(deps): update dependency eslint to v8.46.0 (#138)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-03 16:08:12 +05:30
renovate[bot]
b08c91a50e chore(deps): update dependency electron to v25.4.0 (#139)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-03 16:08:07 +05:30
94 changed files with 2470 additions and 2676 deletions

View File

@@ -12,10 +12,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: latest

View File

@@ -12,10 +12,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: latest
@@ -36,7 +36,7 @@ jobs:
shell: bash
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-dist
path: |

View File

@@ -7,7 +7,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
stale-issue-message: 'Message to comment on stale issues. If none provided, will not mark issues stale'
stale-pr-message: 'Message to comment on stale PRs. If none provided, will not mark PRs stale'

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

893
.yarn/releases/yarn-4.0.2.cjs vendored Executable file

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,3 @@
nodeLinker: node-modules
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
yarnPath: .yarn/releases/yarn-3.6.1.cjs
yarnPath: .yarn/releases/yarn-4.0.2.cjs

View File

@@ -1,5 +1,5 @@
<p align="center"><img src="https://github.com/agam778/MS-365-Electron/blob/main/assets/banner.png?raw=true" alt="Intro Image"></p>
<p align="center">Thanks a lot to <a href="https://t.me/NextWorksGFX">@NextWorksGFX</a> for this amazing banner!</p>
<p align="center"><img src="https://github.com/agam778/MS-365-Electron/blob/main/assets/banner.png?raw=true" alt="Credits: "></p>
<p align="center">Thanks to <a href="https://t.me/NextWorksGFX">@NextWorksGFX</a> for this amazing banner!</p>
<p align="center">Unofficial Microsoft 365 Web Desktop Wrapper made with Electron</p>
<p align="center">
@@ -18,9 +18,6 @@
<a href="https://github.com/agam778/MS-365-Electron/releases/">
<img align="center" src="https://img.shields.io/github/downloads/agam778/MS-365-Electron/total?label=Downloads&style=style=flat">
</a>
<a href="https://github.com/agam778/MS-365-Electron/releases/latest/">
<img align="center" src="https://img.shields.io/github/downloads/agam778/MS-365-Electron/latest/total?label=Downloads%40Latest">
</a>
<a href="https://github.com/agam778/MS-365-Electron/actions/workflows/build.yml">
<img align="center" src="https://github.com/agam778/MS-365-Electron/actions/workflows/build.yml/badge.svg">
</a>
@@ -42,32 +39,29 @@
- [💿 Installation on Linux](#-installation-on-linux)
- [Installation on Ubuntu/Debian based distributions](#installation-on-ubuntudebian-based-distributions)
- [Installation on Red Hat/Fedora based distributions](#installation-on-red-hatfedora-based-distributions)
- [Installation on Arch/Manjaro Linux based distributions](#installation-on-archmanjaro-linux-based-distributions)
- [Installation on Gentoo Linux](#installation-on-gentoo-linux)
- [Installation on Arch Linux based distributions](#installation-on-arch-linux-based-distributions)
- [Installation on Gentoo Linux (Unmaintained)](#installation-on-gentoo-linux-unmaintained)
- [💻 Developing Locally](#-developing-locally)
- [📃 MIT License](#-mit-license)
- [*Disclaimer: Not affiliated with Microsoft. Office, the name, website, images/icons are the intellectual properties of Microsoft.*](#disclaimer-not-affiliated-with-microsoft-office-the-name-website-imagesicons-are-the-intellectual-properties-of-microsoft)
# Introduction
This project is basically a Desktop wrapper for the web version of [Microsoft 365](https://microsoft365.com), which is free but with some basic limits.
MS-365-Electron streamlines your workflow by offering a dedicated desktop interface for the free, web-based version of [Microsoft 365](https://microsoft365.com). Think of it as a convenient launchpad for web applications like Word, Excel, and PowerPoint, eliminating the need to navigate through browser tabs.
I initially made this project because I wanted to use Microsoft 365 on my Linux system with a native experience. Later, I decided to make it public so that others can enjoy this too!
Don't expect this to be a full-fledged Microsoft 365 Desktop Suite (like we have for Windows/macOS), it's just a wrapper of the web version of Microsoft 365.
This is not a full-fledged Microsoft 365 Suite, but just a web wrapper for Microsoft 365 Web, made with Electron.
Note - Windows Hello or Sign in with Security key is **not** supported and will show you an error. You will have to manually sign in with your E-Mail and Password.
***Do Expect bugs***
***Do expect bugs***
Supported Platforms
1. Windows x64 (EXE File)
2. macOS x64 (DMG File)
1. Windows - x64 (EXE File)
2. macOS - x64 and M-series Macs (DMG File)
3. Ubuntu/Debian based distributions (DEB File)
4. Red Hat Linux/Fedora based distributions (RPM File)
5. Arch/Manjaro Linux based distributions (Uploaded on AUR)
6. Gentoo Linux (Unofficial overlay)
5. Arch Linux based distributions (Uploaded on AUR)
6. Gentoo Linux (Unofficial overlay) **[MAINTAINER NEEDED]**
7. All Distributions supporting AppImage (AppImage File); and
8. All Distributions supporting Snap (Uploaded on Snap Store)
@@ -75,10 +69,10 @@ Supported Platforms
- Discord RPC
- Dynamic Icons:
- For macOS: Change icon in dock according to the app you've opened [[Preview]](https://github-production-user-asset-6210df.s3.amazonaws.com/68941022/245203309-3d0dfc1b-02e9-43a8-85d7-9493a2b86b56.mp4)
- For Windows: Set overlay icon [[Preview]](https://github.com/agam778/MS-365-Electron/assets/68941022/791b661b-2b7d-43a6-96df-ee9c30c9b18a)
- For macOS: App's icon in dock changes according to the app you've opened [[Preview]](https://github-production-user-asset-6210df.s3.amazonaws.com/68941022/245203309-3d0dfc1b-02e9-43a8-85d7-9493a2b86b56.mp4)
- For Windows: Sets overlay icon [[Preview]](https://github.com/agam778/MS-365-Electron/assets/68941022/791b661b-2b7d-43a6-96df-ee9c30c9b18a)
- For Linux: Nothing, yet
- Block Ads within the app
- Block Ads and Trackers within the app, preventing ads in websites like Outlook
- Directly open apps from the menu
- Ability to use useragent strings of Windows, macOS or Linux
- Switch between normal and enterprise/education/developer account in the same app
@@ -153,9 +147,9 @@ For Installing in Red Hat/Fedora based distribution :-
2) Scroll down and click the `.rpm` file to download it.
3) Then run the rpm file and click Install to install the App. Launch it from the Applications Menu.
### Installation on Arch/Manjaro Linux based distributions
### Installation on Arch Linux based distributions
1. Install any AUR helper like [`yay`](https://github.com/Jguer/yay)
1. Install any AUR helper like [`yay`](https://github.com/Jguer/yay) or [paru](https://github.com/Morganamilo/paru)
2. There are 2 packages in the AUR
- `ms-365-electron-bin`: For installing pre-built releases
@@ -169,7 +163,9 @@ For Installing in Red Hat/Fedora based distribution :-
4. Wait for it to install and tada! The app is installed.
### Installation on Gentoo Linux
### Installation on Gentoo Linux (Unmaintained)
_Maintainer needed_
1. This is supported by an ebuild uploaded on my unofficial overlay. First, enable the overlay on your system:
@@ -194,16 +190,10 @@ yarn install
```
```bash
$ yarn run
yarn run v1.22.18
info Commands available from binary scripts: asar, dircompare, ejs, electron, electron-builder, electron-osx-flat, electron-osx-sign, extract-zip, install-app-deps, is-ci, jake, js-yaml, json5, mime, mkdirp, node-which, rc, rimraf, semver
info Project commands
- dist
electron-builder
- pack
electron-builder --dir
- start
electron .
question Which command would you like to run?:
➤ YN0000: start 'electron .'
➤ YN0000: pack 'electron-builder --dir'
➤ YN0000: dist 'electron-builder'
➤ YN0000: Done in 0s 2ms
```
To start the app, run `yarn start`<br>
@@ -211,4 +201,6 @@ To build the app, run `yarn dist`
# 📃 MIT License
#### *Disclaimer: Not affiliated with Microsoft. Office, the name, website, images/icons are the intellectual properties of Microsoft.*
View the [LICENSE](./LICENSE)
*Disclaimer: Not affiliated with Microsoft. Office, the name, website, images/icons are the intellectual properties of Microsoft.*

View File

@@ -16,16 +16,33 @@ console.log = log.log;
Object.assign(console, log.functions);
function createWindow() {
const win = new BrowserWindow({
width: 1181,
height: 670,
icon: path.join(__dirname, "/assets/icons/png/1024x1024.png"),
show: false,
webPreferences: {
nodeIntegration: true,
devTools: true,
},
});
if (getValue("enterprise-or-normal") === "https://microsoft365.com/?auth=1") {
var win = new BrowserWindow({
width: 1181,
height: 670,
icon: path.join(__dirname, "/assets/icons/png/1024x1024.png"),
show: false,
webPreferences: {
nodeIntegration: true,
devTools: true,
partition: "persist:personal",
},
});
} else if (
getValue("enterprise-or-normal") === "https://microsoft365.com/?auth=2"
) {
var win = new BrowserWindow({
width: 1181,
height: 670,
icon: path.join(__dirname, "/assets/icons/png/1024x1024.png"),
show: false,
webPreferences: {
nodeIntegration: true,
devTools: true,
partition: "persist:work",
},
});
}
if (getValue("autohide-menubar") === "true") {
win.setAutoHideMenuBar(true);
@@ -281,6 +298,11 @@ app.on("web-contents-created", (event, contents) => {
});
app.on("browser-window-created", (event, window) => {
if (getValue("autohide-menubar") === "true") {
window.setAutoHideMenuBar(true);
} else {
window.setAutoHideMenuBar(false);
}
window.webContents.on("did-finish-load", () => {
if (getValue("discordrpcstatus") === "true") {
setActivity(`On "${window.webContents.getTitle()}"`);

View File

@@ -103,6 +103,7 @@ function setUserAgent(useragent) {
}
getValueOrDefault("enterprise-or-normal", "https://microsoft365.com/?auth=1");
getValueOrDefault("websites-in-new-window", "true");
getValueOrDefault("autohide-menubar", "false");
getValueOrDefault("useragentstring", useragents.Windows);
getValueOrDefault("discordrpcstatus", "false");
@@ -160,7 +161,7 @@ const menulayout = [
label: "Preferences",
submenu: [
{
label: "Open Normal version of MS 365",
label: "Open MS 365 with Personal Account",
type: "radio",
click() {
setValue(
@@ -169,9 +170,9 @@ const menulayout = [
);
dialog.showMessageBoxSync({
type: "info",
title: "Normal version of MS 365",
title: "MS 365 with Personal Account",
message:
"The normal version of MS 365 will be opened.\n\nPlease restart the app to apply the changes.",
"MS 365 will now open with your Personal Account.\n\nPlease restart the app to apply the changes.",
buttons: ["OK"],
});
},
@@ -180,7 +181,7 @@ const menulayout = [
"https://microsoft365.com/?auth=1",
},
{
label: "Open Enterprise version of MS 365",
label: "Open MS 365 with Work/School Account",
type: "radio",
click() {
setValue(
@@ -189,9 +190,9 @@ const menulayout = [
);
dialog.showMessageBoxSync({
type: "info",
title: "Enterprise version of MS 365",
title: "MS 365 with Work/School Account",
message:
"The enterprise version of MS 365 will be opened.\n\nPlease restart the app to apply the changes.",
"MS 365 will now open with your Work/School account.\n\nPlease restart the app to apply the changes.",
buttons: ["OK"],
});
},
@@ -466,7 +467,7 @@ const menulayout = [
},
{ type: "separator" },
{
label: "Open Normal version of MS 365",
label: "Open MS 365 with Personal Account",
type: "radio",
click() {
setValue(
@@ -475,9 +476,9 @@ const menulayout = [
);
dialog.showMessageBoxSync({
type: "info",
title: "Normal version of MS 365",
title: "MS 365 with Personal Account",
message:
"The normal version of MS 365 will be opened.\n\nPlease restart the app to apply the changes.",
"MS 365 will now open with your Personal Account.\n\nPlease restart the app to apply the changes.",
buttons: ["OK"],
});
},
@@ -486,7 +487,7 @@ const menulayout = [
"https://microsoft365.com/?auth=1",
},
{
label: "Open Enterprise version of MS 365",
label: "Open MS 365 with Work/School Account",
type: "radio",
click() {
setValue(
@@ -495,9 +496,9 @@ const menulayout = [
);
dialog.showMessageBoxSync({
type: "info",
title: "Enterprise version of MS 365",
title: "MS 365 with Work/School Account",
message:
"The enterprise version of MS 365 will be opened.\n\nPlease restart the app to apply the changes.",
"MS 365 will now open with your Work/School account.\n\nPlease restart the app to apply the changes.",
buttons: ["OK"],
});
},
@@ -722,18 +723,35 @@ const menulayout = [
label: "File",
submenu: [
{
label: "New Window",
label: "New Window (Personal)",
accelerator: "CmdOrCtrl+N",
click: () => {
let newWindow = new BrowserWindow({
width: 1181,
height: 670,
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: true,
devTools: true,
partition: "persist:personal",
},
});
newWindow.loadURL(getValue("enterprise-or-normal"));
newWindow.loadURL("https://microsoft365.com/?auth=1");
},
},
{
label: "New Window (Work/School)",
accelerator: "CmdOrCtrl+Shift+N",
click: () => {
let newWindow = new BrowserWindow({
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: true,
devTools: true,
partition: "persist:work",
},
});
newWindow.loadURL("https://microsoft365.com/?auth=2");
},
},
{ type: "separator" },
@@ -741,7 +759,11 @@ const menulayout = [
label: "Close Window",
accelerator: "CmdOrCtrl+W",
click: () => {
BrowserWindow.getFocusedWindow().close();
try {
BrowserWindow.getFocusedWindow().close();
} catch {
return;
}
},
},
{
@@ -863,11 +885,12 @@ const menulayout = [
) {
if (getValue("websites-in-new-window") === "true") {
let wordwindow = new BrowserWindow({
width: 800,
height: 600,
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:work",
},
});
wordwindow.loadURL("https://microsoft365.com/launch/word?auth=2");
@@ -882,11 +905,12 @@ const menulayout = [
) {
if (getValue("websites-in-new-window") === "true") {
let wordwindow = new BrowserWindow({
width: 800,
height: 600,
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:personal",
},
});
wordwindow.loadURL("https://microsoft365.com/launch/word?auth=1");
@@ -907,11 +931,12 @@ const menulayout = [
) {
if (getValue("websites-in-new-window") === "true") {
let excelwindow = new BrowserWindow({
width: 800,
height: 600,
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:work",
},
});
excelwindow.loadURL(
@@ -928,11 +953,12 @@ const menulayout = [
) {
if (getValue("websites-in-new-window") === "true") {
let excelwindow = new BrowserWindow({
width: 800,
height: 600,
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:personal",
},
});
excelwindow.loadURL(
@@ -955,11 +981,12 @@ const menulayout = [
) {
if (getValue("websites-in-new-window") === "true") {
let powerpointwindow = new BrowserWindow({
width: 800,
height: 600,
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:work",
},
});
powerpointwindow.loadURL(
@@ -976,11 +1003,12 @@ const menulayout = [
) {
if (getValue("websites-in-new-window") === "true") {
let powerpointwindow = new BrowserWindow({
width: 800,
height: 600,
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:personal",
},
});
powerpointwindow.loadURL(
@@ -1003,11 +1031,12 @@ const menulayout = [
) {
if (getValue("websites-in-new-window") === "true") {
let outlookwindow = new BrowserWindow({
width: 800,
height: 600,
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:work",
},
});
outlookwindow.loadURL("https://outlook.office.com/mail/");
@@ -1022,11 +1051,12 @@ const menulayout = [
) {
if (getValue("websites-in-new-window") === "true") {
let outlookwindow = new BrowserWindow({
width: 800,
height: 600,
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:personal",
},
});
outlookwindow.loadURL(
@@ -1049,11 +1079,12 @@ const menulayout = [
) {
if (getValue("websites-in-new-window") === "true") {
let onedrivewindow = new BrowserWindow({
width: 800,
height: 600,
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:work",
},
});
onedrivewindow.loadURL(
@@ -1070,11 +1101,12 @@ const menulayout = [
) {
if (getValue("websites-in-new-window") === "true") {
let onedrivewindow = new BrowserWindow({
width: 800,
height: 600,
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:personal",
},
});
onedrivewindow.loadURL(
@@ -1097,11 +1129,12 @@ const menulayout = [
) {
if (getValue("websites-in-new-window") === "true") {
let onenotewindow = new BrowserWindow({
width: 800,
height: 600,
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:work",
},
});
onenotewindow.loadURL(
@@ -1118,11 +1151,12 @@ const menulayout = [
) {
if (getValue("websites-in-new-window") === "true") {
let onenotewindow = new BrowserWindow({
width: 800,
height: 600,
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:personal",
},
});
onenotewindow.loadURL("https://www.onenote.com/notebooks?auth=1");
@@ -1143,11 +1177,12 @@ const menulayout = [
) {
if (getValue("websites-in-new-window") === "true") {
let allappswindow = new BrowserWindow({
width: 800,
height: 600,
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:work",
},
});
allappswindow.loadURL("https://www.microsoft365.com/apps?auth=2");
@@ -1162,11 +1197,12 @@ const menulayout = [
) {
if (getValue("websites-in-new-window") === "true") {
let allappswindow = new BrowserWindow({
width: 800,
height: 600,
width: 1081,
height: 570,
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:personal",
},
});
allappswindow.loadURL("https://www.microsoft365.com/apps?auth=1");

View File

@@ -1,5 +1,5 @@
{
"Windows": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
"macOS": "Mozilla/5.0 (Macintosh; Intel Mac OS X 13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
"Linux": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
"Windows": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"macOS": "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"Linux": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
}

View File

@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Loading MS-Office-Electron</title>
<title>Loading MS-365-Electron</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"
@@ -10,7 +10,6 @@
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<!-- partial:index.partial.html -->
<div id="particles-background" class="vertical-centered-box"></div>
<div id="particles-foreground" class="vertical-centered-box"></div>
@@ -24,11 +23,10 @@
width="50px"
height="auto"
viewBox="0 0 36 24"
src="https://github.com/agam778/MS-Office-Electron/raw/main/assets/icon.png"
src="https://github.com/agam778/MS-365-Electron/raw/main/assets/icon.png"
/>
</div>
</div>
<!-- partial -->
<script src="./script.js"></script>
</body>
</html>

View File

@@ -1,6 +1,6 @@
{
"name": "ms-365-electron",
"version": "1.0.0",
"version": "1.1.0",
"description": "Unofficial Microsoft 365 Web Desktop Wrapper made with Electron",
"main": "app/main.js",
"repository": {
@@ -66,7 +66,7 @@
},
"license": "MIT",
"devDependencies": {
"electron": "^25.3.2",
"electron": "^28.0.0",
"electron-builder": "^24.6.3",
"eslint": "^8.45.0"
},
@@ -82,7 +82,7 @@
"electron-log": "^5.0.0-beta.25",
"electron-store": "^8.1.0",
"electron-updater": "^6.1.4",
"node-gyp": "^9.4.0"
"node-gyp": "^10.0.0"
},
"packageManager": "yarn@3.6.1"
"packageManager": "yarn@4.0.2"
}

2572
yarn.lock

File diff suppressed because it is too large Load Diff