118 Commits

Author SHA1 Message Date
789f735885 chore(deps): update dependency electron to v40
Some checks failed
Build/release / action-release (push) Has been cancelled
2026-02-02 10:50:39 +00:00
0e1f640638 Merge pull request 'chore(deps): update dependency electron to v39.4.0' (#49) from renovate/electron-39.x-lockfile into main
Some checks are pending
Build/release / action-release (push) Waiting to run
Reviewed-on: #49
2026-02-02 10:47:53 +00:00
adfc8eb716 chore(deps): update dependency electron to v39.4.0 2026-02-01 00:01:23 +00:00
2a1364dd3c chore(deps): update dependency axios to v1.13.4
Some checks failed
Build/release / action-release (push) Has been cancelled
2026-02-01 00:01:15 +00:00
5e6eab2db2 Merge pull request 'chore(deps): update dependency @ghostery/adblocker-electron to v2.13.4' (#45) from renovate/ghostery-adblocker-electron-2.x-lockfile into main
All checks were successful
Build/release / action-release (push) Successful in 3m35s
Reviewed-on: #45
2026-01-26 07:55:19 +00:00
6fe5043392 chore(deps): update dependency electron to v39.3.0
Some checks failed
Build/release / action-release (push) Has been cancelled
2026-01-25 00:08:07 +00:00
8220d56867 chore(deps): update dependency @ghostery/adblocker-electron to v2.13.4 2026-01-18 00:01:19 +00:00
248ce6bd99 chore: add upload-artifact
All checks were successful
Build/release / action-release (push) Successful in 2m43s
2026-01-14 11:04:39 +01:00
f68cb4bc67 chore: revert upload artifact
All checks were successful
Build/release / action-release (push) Successful in 3m37s
2026-01-14 10:13:44 +01:00
547d2b4e99 chore(deps): update dependency @ghostery/adblocker-electron to v2.13.3
Some checks failed
Build/release / action-release (push) Failing after 3m35s
2026-01-11 00:01:03 +00:00
3452ae6c2f chore: disable releasing
All checks were successful
Build/release / action-release (push) Successful in 2m40s
2025-12-29 14:43:48 +01:00
45c3769261 chore: update package version
Some checks failed
Build/release / action-release (push) Failing after 3m14s
2025-12-29 14:38:34 +01:00
2a3042b6b2 chore(deps): update dependency @ghostery/adblocker-electron to v2.13.2
All checks were successful
Build/release / action-release (push) Successful in 3m40s
2025-12-24 12:47:52 +00:00
5ca8ef41fe Merge pull request 'chore(deps): update dependency electron-builder to v26.4.0' (#41) from renovate/electron-builder-26.x-lockfile into main
All checks were successful
Build/release / action-release (push) Successful in 3m22s
Reviewed-on: #41
2025-12-22 13:00:09 +00:00
e16fd0c913 chore(deps): update dependency electron-builder to v26.4.0 2025-12-21 00:02:18 +00:00
8ad97a9418 chore(deps): update dependency @ghostery/adblocker-electron to v2.13.1
Some checks failed
Build/release / action-release (push) Has been cancelled
2025-12-21 00:02:03 +00:00
c529d3441f chore: go to GNU
All checks were successful
Build/release / action-release (push) Successful in 2m6s
2025-12-17 15:34:29 +00:00
b911617c18 chore(deps): update dependency electron-updater to v6.7.3
All checks were successful
Build/release / action-release (push) Successful in 2m33s
2025-12-16 13:55:58 +00:00
5753abb2cf chore: bump ajv
All checks were successful
Build/release / action-release (push) Successful in 2m41s
2025-12-15 13:14:35 +00:00
9ca755db37 Merge pull request 'chore(deps): update dependency electron-builder to v26.3.6' (#38) from renovate/electron-builder-26.x-lockfile into main
Some checks failed
Build/release / action-release (push) Has been cancelled
Reviewed-on: daanselen/akarton-planning#38
2025-12-15 13:12:10 +00:00
1adb11d48e Merge pull request 'chore(deps): update dependency electron to v39.2.7' (#37) from renovate/electron-39.x-lockfile into main
Some checks failed
Build/release / action-release (push) Has been cancelled
Reviewed-on: daanselen/akarton-planning#37
2025-12-15 13:12:04 +00:00
939fc9e846 chore: add ajv
All checks were successful
Build/release / action-release (push) Successful in 2m51s
2025-12-15 14:05:50 +01:00
12523cfc21 chore(deps): update dependency electron-builder to v26.3.6 2025-12-14 00:02:34 +00:00
a59b071148 chore(deps): update dependency electron to v39.2.7 2025-12-14 00:01:45 +00:00
c891cc0cbf Merge pull request 'chore(deps): update dependency electron to v39.2.6' (#35) from renovate/electron-39.x-lockfile into main
All checks were successful
Build/release / action-release (push) Successful in 2m56s
Reviewed-on: daanselen/akarton-planning#35
2025-12-09 09:02:51 +00:00
e05ec357e6 chore(deps): update dependency electron-builder to v26.3.4
Some checks failed
Build/release / action-release (push) Has been cancelled
2025-12-07 00:03:42 +00:00
20499e9be2 chore(deps): update dependency electron to v39.2.6 2025-12-07 00:02:51 +00:00
20de557e6c Merge pull request 'chore(deps): update dependency @ghostery/adblocker-electron to v2.13.0' (#34) from renovate/ghostery-adblocker-electron-2.x-lockfile into main
All checks were successful
Build/release / action-release (push) Successful in 3m19s
Reviewed-on: daanselen/akarton-planning#34
2025-12-04 14:04:39 +00:00
53dd4638b2 chore(deps): update dependency @ghostery/adblocker-electron to v2.13.0 2025-12-04 13:42:51 +00:00
2b92652c51 chore(deps): update dependency electron-builder to v26.3.3
Some checks failed
Build/release / action-release (push) Has been cancelled
2025-12-04 13:42:25 +00:00
01ab465bbd chore(deps): update dependency electron to v39.2.5
Some checks failed
Build/release / action-release (push) Failing after 15m58s
2025-12-04 13:18:59 +00:00
feb28ec5b4 chore(deps): update dependency electron to v39.2.4
All checks were successful
Build/release / action-release (push) Successful in 2m35s
2025-11-30 00:02:07 +00:00
90af4a0bac chore: remove github prefix
All checks were successful
Build/release / action-release (push) Successful in 5m47s
2025-11-27 11:28:24 +01:00
32df6a28cc chore: remove github prefix
All checks were successful
Build/release / action-release (push) Successful in 2m28s
2025-11-27 09:33:49 +00:00
03633dd2bf chore: rename app
All checks were successful
Build/release / action-release (push) Successful in 2m24s
2025-11-27 10:22:53 +01:00
380fd63f7e Merge pull request 'chore(deps): update dependency electron-builder to v26.3.1' (#28) from renovate/electron-builder-26.x-lockfile into main
All checks were successful
Build/release / action-release (push) Successful in 5m45s
Reviewed-on: daanselen/akarton-planning#28
2025-11-25 15:10:50 +00:00
834fa06909 Merge pull request 'fix(deps): update dependency node-gyp to v12' (#29) from renovate/node-gyp-12.x into main
Some checks failed
Build/release / action-release (push) Has been cancelled
Reviewed-on: daanselen/akarton-planning#29
2025-11-25 15:10:42 +00:00
93a5a11980 Merge pull request 'chore(deps): update actions/checkout action to v6' (#30) from renovate/actions-checkout-6.x into main
Some checks failed
Build/release / action-release (push) Has been cancelled
Reviewed-on: daanselen/akarton-planning#30
2025-11-25 15:10:35 +00:00
ee39280769 fix(deps): update dependency node-gyp to v12 2025-11-25 15:10:29 +00:00
3314db68f3 chore(deps): update actions/checkout action to v6 2025-11-25 15:10:21 +00:00
4ee83b4164 chore(deps): update dependency electron-builder to v26.3.1 2025-11-25 15:10:19 +00:00
dad4f87734 chore(deps): update dependency electron-updater to v6.7.2
Some checks failed
Build/release / action-release (push) Has been cancelled
2025-11-25 15:09:56 +00:00
75e9774d80 Merge pull request 'chore(deps): update dependency electron-builder to v26.2.0' (#26) from renovate/electron-builder-26.x-lockfile into main
All checks were successful
Build/release / action-release (push) Successful in 2m42s
Reviewed-on: daanselen/akarton-planning#26
2025-11-19 11:13:02 +00:00
a95d607191 chore(deps): update dependency electron-builder to v26.2.0
Some checks failed
renovate/artifacts Artifact file update failure
2025-11-16 00:01:01 +00:00
722f3db7c5 chore(deps): update dependency electron-updater to v6.7.1
Some checks failed
renovate/artifacts Artifact file update failure
Build/release / action-release (push) Has been cancelled
2025-11-16 00:00:59 +00:00
fe394c261d Merge pull request 'chore(deps): update dependency axios to v1.13.2' (#22) from renovate/axios-1.x-lockfile into main
All checks were successful
Build/release / action-release (push) Successful in 2m21s
Reviewed-on: daanselen/akarton-planning#22
Reviewed-by: Daan Selen <dselen@systemec.nl>
2025-11-13 11:22:36 +00:00
95e044c8f3 Merge pull request 'chore(deps): update dependency electron to v38.6.0' (#23) from renovate/electron-38.x-lockfile into main
Some checks failed
Build/release / action-release (push) Has been cancelled
Reviewed-on: daanselen/akarton-planning#23
2025-11-13 11:22:29 +00:00
e364a2fb2b chore(deps): update dependency electron to v39
Some checks failed
renovate/artifacts Artifact file update failure
Build/release / action-release (push) Successful in 2m24s
2025-11-10 11:42:35 +00:00
ded70331bb chore(deps): update dependency electron to v38.6.0
Some checks failed
renovate/artifacts Artifact file update failure
2025-11-10 11:42:31 +00:00
dc30556af2 chore(deps): update dependency axios to v1.13.2
Some checks failed
renovate/artifacts Artifact file update failure
2025-11-10 11:42:29 +00:00
07056cf7bf chore: bump package version
All checks were successful
Build/release / action-release (push) Successful in 2m54s
2025-11-03 15:03:36 +01:00
60b0f3a5a4 Merge pull request 'chore(deps): update dependency electron to v38.5.0' (#19) from renovate/electron-38.x-lockfile into main
All checks were successful
Build/release / action-release (push) Successful in 2m30s
Reviewed-on: daanselen/akarton-planning#19
2025-11-03 13:59:27 +00:00
f3a754c49c Merge pull request 'chore(deps): update dependency @ghostery/adblocker-electron to v2.12.5' (#20) from renovate/ghostery-adblocker-electron-2.x-lockfile into main
Some checks failed
Build/release / action-release (push) Has been cancelled
Reviewed-on: daanselen/akarton-planning#20
2025-11-03 13:59:20 +00:00
9796a66469 Merge pull request 'chore(deps): update dependency axios to v1.13.1' (#21) from renovate/axios-1.x-lockfile into main
Some checks failed
Build/release / action-release (push) Has been cancelled
Reviewed-on: daanselen/akarton-planning#21
2025-11-03 13:59:15 +00:00
816df17fe6 chore: project rename
Some checks failed
Build/release / action-release (push) Has been cancelled
2025-11-03 14:59:01 +01:00
c73bd5adce chore(deps): update dependency electron to v38.5.0 2025-11-02 00:02:44 +00:00
c0575e5ce9 chore(deps): update dependency axios to v1.13.1 2025-11-02 00:02:36 +00:00
6a3817fed4 chore(deps): update dependency @ghostery/adblocker-electron to v2.12.5 2025-11-02 00:02:21 +00:00
8e590c8dea chore: bump new url
All checks were successful
Build/release / action-release (push) Successful in 3m3s
2025-10-20 15:26:28 +02:00
29529797b8 Merge pull request 'chore(deps): update actions/setup-node action to v6' (#18) from renovate/actions-setup-node-6.x into main
Some checks failed
Build/release / action-release (push) Failing after 15m49s
Reviewed-on: daanselen/ms365-electron-excel-akarton#18
2025-10-20 10:24:32 +00:00
1db0efeece Merge pull request 'chore(deps): update dependency node-gyp to v11.5.0' (#17) from renovate/node-gyp-11.x-lockfile into main
Some checks failed
Build/release / action-release (push) Has been cancelled
Reviewed-on: daanselen/ms365-electron-excel-akarton#17
2025-10-20 10:24:26 +00:00
c6c8e8fd1b Merge pull request 'chore(deps): update dependency electron to v38.3.0' (#15) from renovate/electron-38.x-lockfile into main
Some checks failed
Build/release / action-release (push) Has been cancelled
Reviewed-on: daanselen/ms365-electron-excel-akarton#15
2025-10-20 10:24:20 +00:00
92458aabb0 chore(deps): update actions/setup-node action to v6 2025-10-19 00:02:53 +00:00
532eea854f chore(deps): update dependency node-gyp to v11.5.0 2025-10-19 00:02:48 +00:00
30614fbbea chore(deps): update dependency electron to v38.3.0 2025-10-19 00:01:50 +00:00
b4eb5f75ef chore(deps): update dependency electron-updater to v6.7.0
Some checks failed
Build/release / action-release (push) Has been cancelled
2025-10-16 11:25:19 +00:00
b203916e05 Merge pull request 'chore(deps): update dependency @ghostery/adblocker-electron to v2.12.4' (#13) from renovate/ghostery-adblocker-electron-2.x-lockfile into main
All checks were successful
Build/release / action-release (push) Successful in 2m53s
Reviewed-on: daanselen/ms365-electron-excel-akarton#13
2025-10-16 10:39:32 +00:00
ff5afad126 chore(deps): update dependency electron-builder to v26.1.0
Some checks failed
Build/release / action-release (push) Has been cancelled
2025-10-12 00:02:45 +00:00
1c45f842b5 chore(deps): update dependency @ghostery/adblocker-electron to v2.12.4 2025-10-12 00:02:16 +00:00
679c234a72 Merge pull request 'chore(deps): update dependency @ghostery/adblocker-electron to v2.12.3' (#11) from renovate/ghostery-adblocker-electron-2.x-lockfile into main
All checks were successful
Build/release / action-release (push) Successful in 2m57s
Reviewed-on: daanselen/ms365-electron-excel-akarton#11
2025-10-08 10:01:55 +00:00
5335b9c17d chore(deps): update dependency electron to v38.2.2
Some checks failed
Build/release / action-release (push) Has been cancelled
2025-10-08 09:07:42 +00:00
959512c410 chore(deps): update dependency @ghostery/adblocker-electron to v2.12.3 2025-10-08 09:07:18 +00:00
abe9648e56 fix: publish none
All checks were successful
Build/release / action-release (push) Successful in 3m22s
2025-10-06 15:49:22 +02:00
4c969b67be refac: add private git repo
Some checks failed
Build/release / action-release (push) Failing after 2m59s
2025-10-06 15:41:01 +02:00
218eaf5f4c Merge pull request 'chore(deps): update dependency @ghostery/adblocker-electron to v2.12.2' (#9) from renovate/ghostery-adblocker-electron-2.x-lockfile into main
Some checks failed
Build/release / action-release (push) Failing after 2m59s
Reviewed-on: daanselen/ms365-electron-excel-akarton#9
2025-10-06 10:09:14 +00:00
2f27b1c821 chore(deps): update dependency electron-store to v11.0.2
Some checks failed
Build/release / action-release (push) Has been cancelled
2025-10-06 09:54:51 +00:00
e187c451b1 chore(deps): update dependency @ghostery/adblocker-electron to v2.12.2 2025-10-06 09:54:32 +00:00
12c0c17b7f Merge pull request 'chore(deps): update dependency @ghostery/adblocker-electron to v2.12.1' (#8) from renovate/ghostery-adblocker-electron-2.x-lockfile into main
Some checks failed
Build/release / action-release (push) Failing after 3m3s
Reviewed-on: daanselen/ms365-electron-excel-akarton#8
2025-10-06 09:52:18 +00:00
3eb18746d9 chore(deps): update dependency @ghostery/adblocker-electron to v2.12.1 2025-10-05 00:03:17 +00:00
52af3e8b43 chore(deps): update dependency electron to v38.2.1
Some checks are pending
Build/release / action-release (push) Has started running
2025-10-05 00:02:15 +00:00
37054b8383 chore: disable git checking, we are not public yet
Some checks failed
Build/release / action-release (push) Failing after 2m40s
2025-10-03 12:02:02 +02:00
96114bafb0 fix: package.json reference issues
Some checks failed
Build/release / action-release (push) Failing after 1m16s
2025-10-03 10:38:53 +02:00
4df01aa06c chore: bump version
Some checks failed
Build/release / action-release (push) Failing after 2m43s
2025-10-03 10:21:11 +02:00
93f67bc9ae chore: cleanup code and remove bloat
Some checks failed
Build/release / action-release (push) Has been cancelled
2025-10-03 10:20:22 +02:00
28697fa41d chore: change name to ms365-electron-akarton-planning
All checks were successful
Build/release / action-release (push) Successful in 3m44s
2025-10-02 11:11:03 +02:00
164bc6672e fix(deps): update dependency electron-store to v11
All checks were successful
Build/release / action-release (push) Successful in 3m3s
2025-09-30 12:53:43 +00:00
aa6f888d33 Merge pull request 'chore(deps): update dependency electron to v38.2.0' (#5) from renovate/electron-38.x-lockfile into main
All checks were successful
Build/release / action-release (push) Successful in 2m47s
Reviewed-on: daanselen/ms365-electron-excel-akarton#5
2025-09-30 12:50:55 +00:00
056da7d46a fix: reference issue
All checks were successful
Build/release / action-release (push) Successful in 3m2s
2025-09-30 14:44:32 +02:00
18c55f3bff chore(deps): update dependency electron to v38.2.0 2025-09-30 12:37:28 +00:00
475dc8a9da refac: prohibit downloads and disable GPU acceleration
All checks were successful
Build/release / action-release (push) Successful in 3m13s
2025-09-30 14:34:43 +02:00
ef3117c509 chore: remove more unneeded code
All checks were successful
Build/release / action-release (push) Successful in 4m12s
2025-09-30 12:00:42 +02:00
f664c94032 refac: make application more lean and Akarton specific
All checks were successful
Build/release / action-release (push) Successful in 4m15s
2025-09-30 11:55:20 +02:00
b5ec8edbd4 chore: use the gitea compatible actions
All checks were successful
Build/release / action-release (push) Successful in 4m5s
2025-09-30 08:56:41 +02:00
6c054b78d1 chore: syntax fix
Some checks failed
Build/release / action-release (push) Failing after 4m29s
2025-09-30 08:49:21 +02:00
a1026f6619 refac: fix spelling/syntax
Some checks failed
Build/release / action-release (push) Failing after 15s
2025-09-30 08:48:05 +02:00
5e61863d4a chore: add the upload artifact
Some checks failed
Build/release / action-release (push) Failing after 2s
2025-09-30 08:47:05 +02:00
Daan Selen
7944160696 chore: add readme info
Some checks failed
Build/release / action-release (push) Failing after 3m19s
2025-09-29 23:59:08 +02:00
Daan Selen
9cd4ab2660 fix: set some more defaults 2025-09-29 23:58:33 +02:00
Daan Selen
2ddd5d5a53 fix: name inconsistency
Some checks failed
Build/release / action-release (push) Failing after 3m27s
2025-09-29 23:47:03 +02:00
b9cbe25696 chore: update package.json
Some checks failed
Build/release / action-release (push) Failing after 3m25s
2025-09-29 16:58:27 +02:00
55b89360cf chore: readd action step
Some checks failed
Build/release / action-release (push) Failing after 6m36s
2025-09-29 16:37:39 +02:00
9f85d0ad93 chore: refac readme and package.json
Some checks failed
Build/release / action-release (push) Has been cancelled
2025-09-29 16:33:59 +02:00
107f3ed7aa chore(workflows): disable debug
Some checks failed
Build/release / action-release (push) Failing after 3m33s
2025-09-29 13:30:27 +02:00
d5c1d7405c chore: try usermode
Some checks are pending
Build/release / action-release (push) Waiting to run
2025-09-26 16:30:45 +02:00
137e292a43 chore: remove --assumeyes
Some checks failed
Build/release / action-release (push) Failing after 1m52s
2025-09-26 16:25:10 +02:00
1a3e55d40f chore: try to make flathub work
Some checks failed
Build/release / action-release (push) Failing after 1m0s
2025-09-26 16:22:42 +02:00
949c1a36f6 chore: enable debug log
Some checks failed
Build/release / action-release (push) Failing after 2m28s
2025-09-26 16:14:54 +02:00
3a6d806e7b feat: add extra build deps
Some checks failed
Build/release / action-release (push) Failing after 1m25s
2025-09-26 16:10:49 +02:00
8772eb9339 fix: add flatpak remote
Some checks failed
Build/release / action-release (push) Failing after 1m35s
2025-09-26 16:05:54 +02:00
172ab60851 chore: make workflow more robust
Some checks failed
Build/release / action-release (push) Has been cancelled
2025-09-26 16:04:19 +02:00
3bad604322 fix: add apt-get update to update apt cache
Some checks failed
Build/release / action-release (push) Failing after 4m24s
2025-09-26 15:59:57 +02:00
7e9c7d7628 fix: add missing deps
Some checks failed
Build/release / action-release (push) Failing after 24s
2025-09-26 15:59:10 +02:00
d1bee89fe5 refac: remove more unneeded code
Some checks failed
Build/release / action-release (push) Failing after 51s
2025-09-26 15:56:25 +02:00
401cb6d941 Merge pull request 'chore(config): migrate renovate config' (#3) from renovate/migrate-config into main
Reviewed-on: daanselen/ms365-electron-sandbox#3
2025-09-26 13:35:19 +00:00
d32f52e9fe feat: fallback to github 2025-09-26 15:33:27 +02:00
756c808971 feat: make the workflow usable for gitea 2025-09-26 15:32:19 +02:00
406500f685 feat: make this Systemec ready. 2025-09-26 15:32:06 +02:00
f8821c9e61 chore(config): migrate config renovate.json 2025-09-26 12:28:49 +00:00
39 changed files with 896 additions and 3173 deletions

View File

@@ -0,0 +1,67 @@
name: Build/release
on:
workflow_dispatch:
push:
branches:
- 'main'
tags:
- '*'
env:
DEBIAN_FRONTEND: "noninteractive"
GH_TOKEN: "${{ secrets.GH_TOKEN || secrets.GITEA_TOKEN }}"
VERSION: "v0.1.0"
YARN_URL: "https://github.com/yarnpkg/yarn/releases/download/v1.22.22/yarn-1.22.22.js"
jobs:
action-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Enable Corepack for Yarn
run: corepack enable
- name: Install NodeJS and NPM
uses: actions/setup-node@v6
with:
node-version: latest
- name: Install system build dependencies
run: |
mv /etc/apt/sources.list.d/microsoft-prod.list /etc/apt/sources.list.d/microsoft-prod.list.disabled
until apt-get update; do
echo -e "-----\napt-get update failed, retrying in 1s...\n-----"
sleep 1s
done
apt-get install -y \
dpkg \
libglib2.0-dev \
wget \
curl \
fakeroot \
xvfb
- name: Install NPM dependencies
run: |
yarn install
- name: Build the electron app
run: |
yarn build
- name: upload the building actifacts
uses: actions/upload-artifact@v3
with:
name: packages
path: |
./release/*.deb
./release/*.rpm
./release/*.flatpak
./release/latest-linux.yml
retention-days: 7
overwrite: true

2
.github/FUNDING.yml vendored
View File

@@ -1,2 +0,0 @@
github: agam778
ko_fi: agam778

View File

@@ -1,16 +0,0 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/.github"
schedule:
interval: "daily"

View File

@@ -1,56 +0,0 @@
name: Build/release
on:
workflow_dispatch:
push:
branches:
- 'main'
tags:
- '*'
env:
VERSION: "v2.1.1"
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
YARN_URL: "https://github.com/yarnpkg/yarn/releases/download/v1.22.22/yarn-1.22.22.js"
jobs:
action-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Enable Corepack before setting up Node
run: corepack enable
- name: Install Node.js, NPM
uses: actions/setup-node@v5
with:
node-version: latest
- name: Install dependencies
run: |
yarn install
- name: Build the app
run: |
yarn build
- name: Release
uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
files: |
./release/*.deb
./release/latest-linux.yml
make_latest: "true"
generate_release_notes: true
token: ${{ secrets.GITHUB_TOKEN }}
repository: "DaanSelen/MS-365-Electron"
tag_name: "${{ env.VERSION }}"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: packages
path: ./release/*.deb

View File

@@ -1,36 +0,0 @@
name: Build/release
on: workflow_dispatch
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: latest
- name: Build and release with electron-builder
run: |
export GH_TOKEN=${{ secrets.GITHUB_TOKEN }}
yarn
if [ "$RUNNER_OS" == "Linux" ]; then
yarn dist -c.snap.publish=github
elif [ "$RUNNER_OS" == "Windows" ]; then
yarn dist
elif [ "$RUNNER_OS" == "macOS" ]; then
yarn dist -m --x64 --arm64
else
echo "$RUNNER_OS not supported"
exit 1
fi
shell: bash

View File

@@ -1,49 +0,0 @@
name: CI
on: workflow_dispatch
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: latest
- name: Build with Electron Builder
run: |
export GH_TOKEN=${{ secrets.GITHUB_TOKEN }}
yarn
if [ "$RUNNER_OS" == "Linux" ]; then
yarn dist --publish never
elif [ "$RUNNER_OS" == "Windows" ]; then
yarn dist --publish never
elif [ "$RUNNER_OS" == "macOS" ]; then
yarn dist -m --x64 --arm64 --publish never
else
echo "$RUNNER_OS not supported"
exit 1
fi
shell: bash
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-dist
path: |
release/*.exe
release/*.dmg
release/*.deb
release/*.snap
release/*.tar.gz
release/*.AppImage
release/*.rpm

View File

@@ -1,13 +0,0 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'
jobs:
stale:
runs-on: ubuntu-latest
steps:
- 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'

9
.gitignore vendored
View File

@@ -4,11 +4,6 @@
.DS_Store
flatpak-node-generator.py
generated-sources.json
.yarn/*
.yarn/
package-lock.json
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.vscode

10
.vscode/settings.json vendored
View File

@@ -1,10 +0,0 @@
{
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
"editor.formatOnType": false,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"files.autoSave": "onFocusChange",
"prettier.printWidth": 100,
"vs-code-prettier-eslint.prettierLast": false
}

239
LICENSE
View File

@@ -1,21 +1,226 @@
MIT License
Copyright (c) 2021-2023 Agampreet Singh
GNU GENERAL PUBLIC LICENSE
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Version 3, 29 June 2007
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for software and other kinds of works.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS
0. Definitions.
“This License” refers to version 3 of the GNU General Public License.
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
A “covered work” means either the unmodified Program or a work based on the Program.
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
1. Source Code.
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
7. Additional Terms.
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
11. Patents.
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/licenses/why-not-lgpl.html>.

View File

@@ -1,27 +1,11 @@
<p align="center"><img src="https://DaanSelen/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>
# Important!
<p align="center">
<a href="https://youtube.com/AgamsTechTricks">
<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">
</a>
<a href="https://DaanSelen/MS-365-Electron/blob/main/LICENSE">
<img align="center" src="https://img.shields.io/github/license/agam778/MS-365-Electron?style=flat">
</a>
<a href="https://DaanSelen/MS-365-Electron/releases/">
<img align="center" src="https://img.shields.io/github/v/release/agam778/MS-365-Electron?label=Release&logo=github&style=style=flat&color=blue">
</a>
<a href="https://DaanSelen/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://DaanSelen/MS-365-Electron/actions/workflows/build.yml">
<img align="center" src="https://DaanSelen/MS-365-Electron/actions/workflows/build.yml/badge.svg">
</a>
</p>
When using this program and reinstalling many times, do not forget to clear:
```
~/.config/<AppName>/
~/.local/share/<AppName>/
~/.cache/<AppName>/
```
# Table of contents
@@ -42,7 +26,6 @@
- [Installation on Arch Linux based distributions](#installation-on-arch-linux-based-distributions)
- [Installation on Void Linux](#installation-on-void-linux)
- [Maintained by: @xHyroM](#maintained-by-xhyrom)
- [Installation on Gentoo Linux (Unmaintained)](#installation-on-gentoo-linux-unmaintained)
- [💻 Developing Locally](#-developing-locally)
- [📃 MIT License](#-mit-license)
@@ -64,9 +47,8 @@ Supported Platforms
4. Red Hat Linux/Fedora based distributions (RPM File)
5. Arch Linux based distributions (Uploaded on AUR)
6. Void Linux (Maintained by: [@xHyroM](https://github.com/xHyroM))
7. Gentoo Linux (Unofficial overlay) **[MAINTAINER NEEDED]**
8. All Distributions supporting AppImage (AppImage File); and
9. All Distributions supporting Snap (Uploaded on Snap Store)
7. All Distributions supporting AppImage (AppImage File); and
8. All Distributions supporting Snap (Uploaded on Snap Store)
# List of Features
@@ -189,22 +171,6 @@ For Installing in Red Hat/Fedora based distribution :-
sudo xbps-install -S ms-365-electron
```
### 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:
```bash
eselect repository add agam778-overlay git https://github.com/agam778/agam778-overlay.git
emaint sync -r agam778-overlay
```
2. Now, install the package:
```bash
sudo emerge -a ms-office-electron
```
# 💻 Developing Locally
To build the app locally:<br>
Run the following commands to clone the repository and install the dependencies

View File

@@ -1,45 +1,13 @@
import { dialog, BrowserWindow, ShareMenu, clipboard } from "electron";
import { dialog, BrowserWindow } from "electron";
import { getValue, setValue } from "./store.js";
import { ElectronBlocker } from "@ghostery/adblocker-electron";
import { clearActivity, setActivity } from "./rpc.js";
import prompt from "electron-prompt";
import { getScreenWidth, getScreenHeight } from "./dimensions.js";
import { checkForUpdates, openExternalLink, openLogsFolder, setUserAgent } from "./utils.js";
import { setUserAgent } from "./utils.js";
import { appUrl } from "../main.js";
import useragents from "../useragents.json" with { type: "json" };
const commonPreferencesSubmenu = [
{
label: "Open MS 365 with Personal Account",
type: "radio",
click() {
setValue("enterprise-or-normal", "?auth=1");
dialog.showMessageBoxSync({
type: "info",
title: "MS 365 with Personal Account",
message:
"MS 365 will now open with your Personal Account.\n\nPlease restart the app to apply the changes.",
buttons: ["OK"],
});
},
checked: getValue("enterprise-or-normal") === "?auth=1",
},
{
label: "Open MS 365 with Work/School Account",
type: "radio",
click() {
setValue("enterprise-or-normal", "?auth=2");
dialog.showMessageBoxSync({
type: "info",
title: "MS 365 with Work/School Account",
message:
"MS 365 will now open with your Work/School account.\n\nPlease restart the app to apply the changes.",
buttons: ["OK"],
});
},
checked: getValue("enterprise-or-normal") === "?auth=2",
},
{ type: "separator" },
{
label: "Open Websites in New Windows",
type: "radio",
@@ -229,129 +197,7 @@ const commonPreferencesSubmenu = [
},
],
},
{
label: "Custom Home Page",
submenu: [
{
label: "Home (Default)",
type: "radio",
click: () => {
setValue("custompage", "home");
dialog.showMessageBoxSync({
type: "info",
title: "Custom Home Page",
message:
"You have set the home page to the default home page. Please restart the app to apply the changes.",
buttons: ["OK"],
});
},
checked: getValue("custompage") === "home",
},
{
label: "Create",
type: "radio",
click: () => {
setValue("custompage", "create");
dialog.showMessageBoxSync({
type: "info",
title: "Custom Home Page",
message:
'You have set the home page to the "Create" page. Please restart the app to apply the changes.',
buttons: ["OK"],
});
},
checked: getValue("custompage") === "create",
},
{
label: "My Content",
type: "radio",
click: () => {
setValue("custompage", "mycontent");
dialog.showMessageBoxSync({
type: "info",
title: "Custom Home Page",
message:
'You have set the home page to the "My Content" page. Please restart the app to apply the changes.',
buttons: ["OK"],
});
},
checked: getValue("custompage") === "mycontent",
},
{
label: "Apps",
type: "radio",
click: () => {
setValue("custompage", "apps");
dialog.showMessageBoxSync({
type: "info",
title: "Custom Home Page",
message:
'You have set the home page to the "Apps" page. Please restart the app to apply the changes.',
buttons: ["OK"],
});
},
checked: getValue("custompage") === "apps",
},
],
},
{ type: "separator" },
{
label: "Enable Discord RPC",
type: "checkbox",
click: () => {
if (getValue("discordrpcstatus") === "true") {
setValue("discordrpcstatus", "false");
dialog.showMessageBoxSync({
type: "info",
title: "Discord RPC",
message: "Discord RPC has been disabled.",
buttons: ["OK"],
});
clearActivity();
return;
} else if (
getValue("discordrpcstatus") === "false" ||
getValue("discordrpcstatus") === undefined
) {
setValue("discordrpcstatus", "true");
dialog.showMessageBoxSync({
type: "info",
title: "Discord RPC",
message: "Discord RPC has been enabled.",
buttons: ["OK"],
});
setActivity(`On ${BrowserWindow.getFocusedWindow().webContents.getTitle()}`);
return;
}
},
checked: getValue("discordrpcstatus") === "true",
},
{
label: "Enable Auto Updates",
type: "checkbox",
click: () => {
if (getValue("autoupdater") === "true") {
setValue("autoupdater", "false");
dialog.showMessageBoxSync({
type: "info",
title: "Auto Updates",
message: "Auto updates have been disabled.",
buttons: ["OK"],
});
return;
} else if (getValue("autoupdater") === "false" || getValue("autoupdater") === undefined) {
setValue("autoupdater", "true");
dialog.showMessageBoxSync({
type: "info",
title: "Auto Updates",
message: "Auto updates have been enabled.",
buttons: ["OK"],
});
return;
}
},
checked: getValue("autoupdater") === "true",
},
{
label: "Enable Dynamic Icons",
type: "checkbox",
@@ -378,7 +224,6 @@ const commonPreferencesSubmenu = [
},
checked: getValue("dynamicicons") === "true",
},
{ type: "separator" },
{
label: "Block Ads and Trackers",
type: "checkbox",
@@ -425,28 +270,22 @@ const commonPreferencesSubmenu = [
},
checked: getValue("blockadsandtrackers") === "true",
},
{
label: "Open External Links in Default Browser",
type: "checkbox",
click: () => {
setValue("externalLinks", getValue("externalLinks") === "true" ? "false" : "true");
dialog.showMessageBoxSync({
type: "info",
title: "External Links in Default Browser",
message: `External links will now open in ${getValue("externalLinks") === "true" ? "your default browser" : "MS-365-Electron"}`,
buttons: ["OK"],
});
},
checked: getValue("externalLinks") === "true",
},
{ type: "separator" },
{
label: "Windows User-Agent String",
label: "Windows Chrome User-Agent String",
type: "radio",
click: () => {
setUserAgent(useragents.Windows);
setUserAgent(useragents.WindowsChrome);
},
checked: getValue("useragentstring") === useragents.Windows,
checked: getValue("useragentstring") === useragents.WindowsChrome,
},
{
label: "Windows Firefox User-Agent String",
type: "radio",
click: () => {
setUserAgent(useragents.WindowsFirefox);
},
checked: getValue("useragentstring") === useragents.WindowsFirefox,
},
{
label: "macOS User-Agent String",
@@ -484,29 +323,10 @@ const commonPreferencesSubmenu = [
const menulayout = [
{
label: "MS-365-Electron",
label: "MS365-Electron",
submenu: [
...(process.platform === "darwin"
? [
{
label: "About MS-365-Electron",
click: async () => {
await openExternalLink("https://github.com/DaanSelen/MS-365-Electron");
},
},
{
label: "Check for Updates",
click: async () => {
await checkForUpdates();
},
},
{ type: "separator" },
{
label: "Open Logs Folder",
click: async () => {
await openLogsFolder();
},
},
{ type: "separator" },
{
label: "Preferences",
@@ -514,118 +334,18 @@ const menulayout = [
},
{ role: "services" },
{ type: "separator" },
{ label: "Hide MS-365-Electron", role: "hide" },
{ label: "Hide MS365-Electron", role: "hide" },
{ role: "hideOthers" },
{ role: "unhide" },
{ type: "separator" },
{ label: "Quit MS-365-Electron", role: "quit" },
{ label: "Quit MS365-Electron", role: "quit" },
]
: [
{
label: "About MS-365-Electron",
click: async () => {
await openExternalLink("https://github.com/DaanSelen/MS-365-Electron");
},
},
{
label: "Check for Updates...",
click: async () => {
await checkForUpdates();
},
},
{ type: "separator" },
{
label: "Open Logs Folder",
click: async () => {
await openLogsFolder();
},
},
{ type: "separator" },
...commonPreferencesSubmenu,
]),
],
},
{
label: "File",
submenu: [
{
label: "New Window (Personal)",
accelerator: "CmdOrCtrl+N",
click: () => {
let newWindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: true,
devTools: true,
partition: "persist:personal",
},
});
newWindow.loadURL(`https://microsoft365.com/${getValue("custompage")}/?auth=1`);
},
},
{
label: "New Window (Work/School)",
accelerator: "CmdOrCtrl+Shift+N",
click: () => {
let newWindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: true,
devTools: true,
partition: "persist:work",
},
});
newWindow.loadURL(`https://microsoft365.com/${getValue("custompage")}/?auth=2`);
},
},
{ type: "separator" },
{
label: "Close Window",
accelerator: "CmdOrCtrl+W",
click: () => {
try {
BrowserWindow.getFocusedWindow().close();
} catch {
return;
}
},
},
{
label: "Close All Windows",
accelerator: "CmdOrCtrl+Shift+W",
click: () => {
BrowserWindow.getAllWindows().forEach((window) => {
window.close();
});
},
},
{ type: "separator" },
{
label: "Copy URL to Clipboard",
accelerator: "CmdOrCtrl+Shift+C",
click: () => {
const url = BrowserWindow.getFocusedWindow().webContents.getURL();
clipboard.writeText(url);
},
},
...(process.platform === "darwin"
? [
{
label: "Share...",
click: () => {
let sharemenu = new ShareMenu({
urls: [BrowserWindow.getFocusedWindow().webContents.getURL()],
texts: [BrowserWindow.getFocusedWindow().getTitle()],
});
sharemenu.popup();
},
},
]
: []),
],
},
{
label: "Edit",
submenu: [
@@ -677,7 +397,7 @@ const menulayout = [
label: "Home",
click: () => {
BrowserWindow.getFocusedWindow().loadURL(
`https://microsoft365.com/${getValue("custompage")}/${getValue("enterpriseOrNormal")}`
appUrl
);
},
},
@@ -699,283 +419,6 @@ const menulayout = [
{ role: "togglefullscreen" },
],
},
{
label: "Apps",
submenu: [
{
label: "Word",
click: () => {
if (getValue("enterprise-or-normal") === "?auth=2") {
if (getValue("websites-in-new-window") === "true") {
let wordwindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:work",
},
});
wordwindow.loadURL("https://microsoft365.com/launch/word?auth=2");
} else {
BrowserWindow.getFocusedWindow().loadURL(
"https://microsoft365.com/launch/word?auth=2"
);
}
} else if (getValue("enterprise-or-normal") === "?auth=1") {
if (getValue("websites-in-new-window") === "true") {
let wordwindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:personal",
},
});
wordwindow.loadURL("https://microsoft365.com/launch/word?auth=1");
} else {
BrowserWindow.getFocusedWindow().loadURL(
"https://microsoft365.com/launch/word?auth=1"
);
}
}
},
},
{
label: "Excel",
click: () => {
if (getValue("enterprise-or-normal") === "?auth=2") {
if (getValue("websites-in-new-window") === "true") {
let excelwindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:work",
},
});
excelwindow.loadURL("https://microsoft365.com/launch/excel?auth=2");
} else {
BrowserWindow.getFocusedWindow().loadURL(
"https://microsoft365.com/launch/excel?auth=2"
);
}
} else if (getValue("enterprise-or-normal") === "?auth=1") {
if (getValue("websites-in-new-window") === "true") {
let excelwindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:personal",
},
});
excelwindow.loadURL("https://microsoft365.com/launch/excel?auth=1");
} else {
BrowserWindow.getFocusedWindow().loadURL(
"https://microsoft365.com/launch/excel?auth=1"
);
}
}
},
},
{
label: "PowerPoint",
click: () => {
if (getValue("enterprise-or-normal") === "?auth=2") {
if (getValue("websites-in-new-window") === "true") {
let powerpointwindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:work",
},
});
powerpointwindow.loadURL("https://microsoft365.com/launch/powerpoint?auth=2");
} else {
BrowserWindow.getFocusedWindow().loadURL(
"https://microsoft365.com/launch/powerpoint?auth=2"
);
}
} else if (getValue("enterprise-or-normal") === "?auth=1") {
if (getValue("websites-in-new-window") === "true") {
let powerpointwindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:personal",
},
});
powerpointwindow.loadURL("https://microsoft365.com/launch/powerpoint?auth=1");
} else {
BrowserWindow.getFocusedWindow().loadURL(
"https://microsoft365.com/launch/powerpoint?auth=1"
);
}
}
},
},
{
label: "Outlook",
click: () => {
if (getValue("enterprise-or-normal") === "?auth=2") {
if (getValue("websites-in-new-window") === "true") {
let outlookwindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:work",
},
});
outlookwindow.loadURL("https://outlook.office.com/mail/");
} else {
BrowserWindow.getFocusedWindow().loadURL("https://outlook.office.com/mail/");
}
} else if (getValue("enterprise-or-normal") === "?auth=1") {
if (getValue("websites-in-new-window") === "true") {
let outlookwindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:personal",
},
});
outlookwindow.loadURL("https://office.live.com/start/Outlook.aspx");
} else {
BrowserWindow.getFocusedWindow().loadURL(
"https://office.live.com/start/Outlook.aspx"
);
}
}
},
},
{
label: "OneDrive",
click: () => {
if (getValue("enterprise-or-normal") === "?auth=2") {
if (getValue("websites-in-new-window") === "true") {
let onedrivewindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:work",
},
});
onedrivewindow.loadURL("https://microsoft365.com/launch/onedrive?auth=2");
} else {
BrowserWindow.getFocusedWindow().loadURL(
"https://microsoft365.com/launch/onedrive?auth=2"
);
}
} else if (getValue("enterprise-or-normal") === "?auth=1") {
if (getValue("websites-in-new-window") === "true") {
let onedrivewindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:personal",
},
});
onedrivewindow.loadURL("https://microsoft365.com/launch/onedrive?auth=1");
} else {
BrowserWindow.getFocusedWindow().loadURL(
"https://microsoft365.com/launch/onedrive?auth=1"
);
}
}
},
},
{
label: "OneNote",
click: () => {
if (getValue("enterprise-or-normal") === "?auth=2") {
if (getValue("websites-in-new-window") === "true") {
let onenotewindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:work",
},
});
onenotewindow.loadURL("https://www.microsoft365.com/launch/onenote?auth=2");
} else {
BrowserWindow.getFocusedWindow().loadURL(
"https://www.microsoft365.com/launch/onenote?auth=2"
);
}
} else if (getValue("enterprise-or-normal") === "?auth=1") {
if (getValue("websites-in-new-window") === "true") {
let onenotewindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:personal",
},
});
onenotewindow.loadURL("https://www.onenote.com/notebooks?auth=1");
} else {
BrowserWindow.getFocusedWindow().loadURL("https://www.onenote.com/notebooks?auth=1");
}
}
},
},
{
label: "All Apps",
click: () => {
if (getValue("enterprise-or-normal") === "?auth=2") {
if (getValue("websites-in-new-window") === "true") {
let allappswindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:work",
},
});
allappswindow.loadURL("https://www.microsoft365.com/apps?auth=2");
} else {
BrowserWindow.getFocusedWindow().loadURL("https://www.microsoft365.com/apps?auth=2");
}
} else if (getValue("enterprise-or-normal") === "?auth=1") {
if (getValue("websites-in-new-window") === "true") {
let allappswindow = new BrowserWindow({
width: Math.round(getScreenWidth() * (getValue("windowWidth") - 0.07)),
height: Math.round(getScreenHeight() * (getValue("windowHeight") - 0.07)),
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
partition: "persist:personal",
},
});
allappswindow.loadURL("https://www.microsoft365.com/apps?auth=1");
} else {
BrowserWindow.getFocusedWindow().loadURL("https://www.microsoft365.com/apps?auth=1");
}
}
},
},
],
},
{
label: "Window",
submenu: [

View File

@@ -1,51 +0,0 @@
import { dialog, BrowserWindow } from "electron";
import { Client } from "@xhayper/discord-rpc";
import { setValue } from "./store.js";
const client = new Client({
clientId: "942637872530460742",
});
export async function rpcError(status) {
const rpcerror = dialog.showMessageBoxSync(BrowserWindow.getFocusedWindow(), {
type: "error",
title: "Discord RPC Error",
message: `Oops! An Error occured while ${status} Discord RPC.`,
buttons: ["Close", "Disable Discord RPC"],
});
if (rpcerror === 1) {
setValue("discordrpcstatus", "false");
}
}
export async function clearActivity() {
await client.user?.clearActivity().catch((err) => {
rpcError("clearing");
console.error(err);
});
}
export async function setActivity(details) {
if (!client.user) {
await loginToRPC();
}
await client.user
?.setActivity({
details: details,
startTimestamp: Date.now(),
largeImageKey: "icon",
largeImageText: "MS-365-Electron",
})
.catch((err) => {
rpcError("setting");
console.error(err);
});
}
export async function loginToRPC() {
await client.login().catch((err) => {
rpcError("logging into");
console.error(err);
});
}

View File

@@ -14,28 +14,25 @@ export function setValue(key, value) {
export function getValueOrDefault(key, defaultValue) {
const value = store.get(key);
if (value === undefined) {
try {
store.set(key, defaultValue);
return defaultValue;
} catch (e) {
console.log(e)
}
}
return value;
}
getValueOrDefault("enterprise-or-normal", "?auth=1");
getValueOrDefault("websites-in-new-window", "true");
getValueOrDefault("autohide-menubar", "false");
getValueOrDefault("useragentstring", useragents.Windows);
getValueOrDefault("discordrpcstatus", "false");
getValueOrDefault("enterprise-or-normal", "?auth=2");
getValueOrDefault("websites-in-new-window", "false");
getValueOrDefault("autohide-menubar", "true");
getValueOrDefault("useragentstring", useragents.WindowsChrome);
getValueOrDefault("blockadsandtrackers", "false");
getValueOrDefault("dynamicicons", "true");
getValueOrDefault("autoupdater", "true");
getValueOrDefault("autoupdate", "false");
getValueOrDefault("custompage", "home");
getValueOrDefault("windowWidth", 0.71);
getValueOrDefault("windowHeight", 0.74);
getValueOrDefault("customWindowSize", false);
getValueOrDefault("externalLinks", "true");
if (getValue("enterprise-or-normal") === "https://microsoft365.com/?auth=1") {
setValue("enterprise-or-normal", "?auth=1");
} else if (getValue("enterprise-or-normal") === "https://microsoft365.com/?auth=2") {
setValue("enterprise-or-normal", "?auth=2");
}
getValueOrDefault("externalLinks", "false");

View File

@@ -1,71 +1,5 @@
import { app, dialog, shell } from "electron";
import axios from "axios";
import { app, dialog } from "electron";
import { setValue } from "./store.js";
import updaterpkg from "electron-updater";
const { autoUpdater } = updaterpkg;
export async function checkForUpdates() {
try {
const res = await axios.get(
"https://api.github.com/repos/DaanSelen/MS-365-Electron/releases/latest"
);
const data = res.data;
const currentVersion = "v" + app.getVersion();
const latestVersion = data.tag_name;
if (currentVersion !== latestVersion) {
if (process.platform === "win32" || process.platform === "darwin") {
autoUpdater.checkForUpdatesAndNotify().then((result) => {
if (result === null) {
dialog.showMessageBoxSync({
type: "info",
title: "No Update Available",
message: `Current version: ${currentVersion}\nLatest version: ${latestVersion}\n\nYou are already using the latest version.`,
buttons: ["OK"],
});
}
});
return;
} else {
const updatedialog = dialog.showMessageBoxSync({
type: "info",
title: "Update Available",
message: `Current version: ${currentVersion}\nLatest version: ${latestVersion}\n\nPlease update to the latest version.`,
buttons: ["Download", "Close"],
});
if (updatedialog === 0) {
shell.openExternal("https://github.com/DaanSelen/MS-365-Electron/releases/latest");
}
}
} else {
dialog.showMessageBoxSync({
type: "info",
title: "No Update Available",
message: `Your App's version: ${currentVersion}\nLatest version: ${latestVersion}\n\nYou are already using the latest version.`,
buttons: ["OK"],
});
}
} catch (error) {
console.error("Error checking for updates:", error);
}
}
export async function openExternalLink(url) {
await shell.openExternal(url);
}
export async function openLogsFolder() {
if (process.platform === "win32") {
await shell.openPath(
"C:\\Users\\" + process.env.USERNAME + "\\AppData\\Roaming\\ms-365-electron\\logs\\"
);
} else if (process.platform === "darwin") {
await shell.openPath("/Users/" + process.env.USER + "/Library/Logs/ms-365-electron/");
} else if (process.platform === "linux") {
await shell.openPath("/home/" + process.env.USER + "/.config/ms-365-electron/logs/");
}
}
export function setUserAgent(useragent) {
setValue("useragentstring", useragent);

View File

@@ -1,17 +1,16 @@
import { app, Menu, BrowserWindow, dialog, nativeImage, shell } from "electron";
import { clearActivity, setActivity, loginToRPC } from "./config/rpc.js";
import { ElectronBlocker } from "@ghostery/adblocker-electron";
import { setValue, getValue } from "./config/store.js";
import { getValue } from "./config/store.js";
import { dirname, join } from "path";
import { fileURLToPath } from "url";
app.commandLine.appendSwitch('in-process-gpu')
import { getScreenWidth, getScreenHeight } from "./config/dimensions.js";
import Windows from "./useragents.json" with { type: "json" };
import WindowsChrome from "./useragents.json" with { type: "json" }
import checkInternetConnected from "check-internet-connected";
import domains from "./domains.json" with { type: "json" };
import contextMenu from "electron-context-menu";
import updaterpkg from "electron-updater";
import ElectronDl from "electron-dl";
import menulayout from "./config/menu.js";
import logpkg from "electron-log";
@@ -20,16 +19,15 @@ const __filename = fileURLToPath(import.meta.url);
const windowHeight = getValue("windowHeight");
const windowWidth = getValue("windowWidth");
const __dirname = dirname(__filename);
const { autoUpdater } = updaterpkg;
export const appUrl = `https://akartonbv.sharepoint.com/:x:/r/sites/Bedrijfsbureau/Gedeelde%20documenten/Productieplanning%20OneDrive.xlsx?d=w818e118382dd4d1cab1ddf4d505daa9e&csf=1&web=1&e=zE73Rr`
//https://akartonbv.sharepoint.com/:x:/r/sites/Bedrijfsbureau/Gedeelde%20documenten/Productieplanning%20OneDrive.xlsx?d=w818e118382dd4d1cab1ddf4d505daa9e&csf=1&web=1&e=zE73Rr
transports.file.level = "verbose";
console.log = _log;
Object.assign(console, functions);
function createWindow() {
const enterpriseOrNormal = getValue("enterprise-or-normal");
const custompage = getValue("custompage");
const partition = enterpriseOrNormal === "?auth=1" ? "persist:personal" : "persist:work";
const partition = "persist:work";
const win = new BrowserWindow({
width: Math.round(getScreenWidth() * getValue("windowWidth")),
@@ -43,6 +41,11 @@ function createWindow() {
},
});
win.webContents.session.on('will-download', (event, item) => {
event.preventDefault(); // Blocks the download entirely
console.log(`Blocked download attempt: ${item.getURL()}`);
});
win.setAutoHideMenuBar(getValue("autohide-menubar") === "true");
const splash = new BrowserWindow({
@@ -53,65 +56,30 @@ function createWindow() {
icon: join(__dirname, "/assets/icons/png/1024x1024.png"),
});
// Careful, this loading animation relies fully on that page.
splash.loadURL(`https://agam778.github.io/MS-365-Electron/loading`);
win.loadURL(`https://microsoft365.com/${custompage}/${enterpriseOrNormal}`, {
userAgent: getValue("useragentstring") || Windows,
//The following line is regarding the starting page.
//The default is: https://microsoft365.com/${custompage}/${enterpriseOrNormal}
win.loadURL(appUrl, {
userAgent: getValue("useragentstring") || WindowsChrome,
});
win.webContents.on("did-finish-load", () => {
splash.destroy();
win.show();
if (getValue("discordrpcstatus") === "true") {
setActivity(`On "${win.webContents.getTitle()}"`);
}
if (getValue("blockadsandtrackers") === "true") {
ElectronBlocker.fromPrebuiltAdsAndTracking(fetch).then((blocker) => {
try { // Only enable if not already enabled
blocker.enableBlockingInSession(win.webContents.session);
});
} catch (e) {
console.warn("Adblocker already enabled for this session");
}
}).catch(console.error);
}
});
}
ElectronDl({
dlPath: "./downloads",
onStarted: (item) => {
dialog.showMessageBox({
type: "info",
title: "Downloading File",
message: `Downloading "${item.getFilename()}" to "${item.getSavePath()}"`,
buttons: ["OK"],
});
},
onCompleted: () => {
dialog.showMessageBox({
type: "info",
title: "Download Completed",
message: `Downloading Completed! Please check your "Downloads" folder.`,
buttons: ["OK"],
});
},
onError: (item) => {
dialog.showMessageBox({
type: "error",
title: "Download failed",
message: `Downloading "${item.getFilename()}" failed :(`,
buttons: ["OK"],
});
},
});
contextMenu({
showInspectElement: false,
showServices: false,
});
Menu.setApplicationMenu(Menu.buildFromTemplate(menulayout));
app.on("ready", () => {
createWindow();
});
app.on("web-contents-created", (event, contents) => {
contents.setWindowOpenHandler(({ url }) => {
const urlObject = new URL(url);
@@ -128,14 +96,8 @@ app.on("web-contents-created", (event, contents) => {
if (getValue("websites-in-new-window") === "false") {
if (url.includes("page=Download")) return { action: "allow" };
BrowserWindow.getFocusedWindow().loadURL(url).catch();
if (getValue("discordrpcstatus") === "true") {
setActivity(`On "${BrowserWindow.getFocusedWindow().webContents.getTitle()}"`);
}
return { action: "deny" };
} else {
if (getValue("discordrpcstatus") === "true") {
setActivity(`On "${BrowserWindow.getFocusedWindow().webContents.getTitle()}"`);
}
return {
action: "allow",
overrideBrowserWindowOptions: {
@@ -155,14 +117,8 @@ app.on("web-contents-created", (event, contents) => {
if (getValue("websites-in-new-window") === "false") {
if (url.includes("page=Download")) return { action: "allow" };
BrowserWindow.getFocusedWindow().loadURL(url).catch();
if (getValue("discordrpcstatus") === "true") {
setActivity(`On "${BrowserWindow.getFocusedWindow().webContents.getTitle()}"`);
}
return { action: "deny" };
} else {
if (getValue("discordrpcstatus") === "true") {
setActivity(`On "${BrowserWindow.getFocusedWindow().webContents.getTitle()}"`);
}
return {
action: "allow",
overrideBrowserWindowOptions: {
@@ -346,15 +302,15 @@ app.on("browser-window-created", (event, window) => {
} else {
window.setAutoHideMenuBar(false);
}
window.webContents.on("did-finish-load", () => {
if (getValue("discordrpcstatus") === "true") {
setActivity(`On "${window.webContents.getTitle()}"`);
}
});
if (getValue("blockadsandtrackers") === "true") {
ElectronBlocker.fromPrebuiltAdsAndTracking(fetch).then((blocker) => {
blocker.enableBlockingInSession(window.webContents.session);
});
// Only enable if not already enabled
try {
blocker.enableBlockingInSession(win.webContents.session);
} catch (e) {
console.warn("Adblocker already enabled for this session");
}
}).catch(console.error);
}
});
@@ -365,7 +321,6 @@ app.on("window-all-closed", () => {
if (process.platform === "darwin") {
app.dock.setIcon(null);
}
clearActivity();
});
app.on("activate", () => {
@@ -389,11 +344,15 @@ app.on("ready", function () {
console.log(response);
});
});
if (getValue("autoupdater") === "true") {
autoUpdater.checkForUpdatesAndNotify();
}
if (getValue("discordrpcstatus") === "true") {
loginToRPC();
setActivity(`Opening Microsoft 365...`);
}
});
contextMenu({
showInspectElement: false,
showServices: false,
});
Menu.setApplicationMenu(Menu.buildFromTemplate(menulayout));
app.on("ready", () => {
createWindow();
});

View File

@@ -1,5 +1,6 @@
{
"Windows": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
"macOS": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
"Linux": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
"WindowsChrome": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
"WindowsFirefox": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0) Gecko/20100101 Firefox/143.0",
"macOS": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
"Linux": "Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0"
}

View File

@@ -1 +1 @@
NODE_OPTIONS=--no-deprecation npm run build
NODE_OPTIONS=--no-deprecation yarn build

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/favicons/mstile-150x150.png"/>
<TileColor>#603cba</TileColor>
</tile>
</msapplication>
</browserconfig>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -1,45 +0,0 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="1024.000000pt" height="1024.000000pt" viewBox="0 0 1024.000000 1024.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.14, written by Peter Selinger 2001-2017
</metadata>
<g transform="translate(0.000000,1024.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M4958 9915 c-2 -2 -32 -6 -67 -9 -35 -3 -73 -8 -85 -11 -11 -3 -32
-7 -46 -9 -14 -3 -36 -8 -50 -11 -14 -3 -37 -7 -51 -10 -116 -21 -360 -121
-534 -219 -22 -12 -85 -46 -140 -75 -55 -30 -113 -61 -130 -71 -16 -9 -70 -39
-120 -65 -49 -27 -108 -58 -130 -70 -64 -36 -273 -148 -360 -195 -44 -23 -102
-55 -130 -70 -27 -15 -77 -42 -110 -60 -33 -18 -114 -62 -180 -98 -66 -35
-149 -81 -185 -100 -36 -19 -92 -49 -125 -67 -179 -97 -199 -108 -415 -225
-63 -34 -153 -83 -200 -108 -47 -25 -120 -65 -164 -89 -43 -23 -80 -43 -81
-43 -6 0 -141 -84 -189 -118 -292 -202 -527 -490 -673 -827 -27 -60 -91 -254
-98 -295 -3 -17 -12 -62 -20 -101 -8 -39 -19 -101 -23 -138 -9 -87 -9 -3325 0
-3416 53 -496 309 -965 701 -1283 133 -108 217 -158 752 -446 39 -21 122 -66
185 -99 63 -33 129 -69 145 -78 17 -10 50 -28 75 -40 25 -13 74 -39 110 -59
36 -21 101 -56 145 -80 213 -114 226 -121 368 -199 28 -15 88 -47 132 -71 44
-24 127 -69 185 -100 58 -32 141 -77 185 -100 79 -42 274 -147 370 -200 211
-115 300 -160 380 -193 105 -43 250 -89 318 -101 15 -2 35 -7 45 -10 22 -6 81
-15 167 -25 76 -9 401 -6 450 3 17 4 68 13 115 22 255 46 371 96 904 384 l69
38 76 -62 c221 -178 510 -317 773 -372 259 -54 480 -63 706 -30 130 20 123 18
244 50 634 167 1143 667 1301 1276 43 167 51 234 52 430 0 261 -32 423 -132
662 -37 89 -42 110 -33 128 32 60 106 293 123 390 7 37 17 91 24 125 10 50 12
3363 2 3445 -19 152 -77 394 -114 475 -8 16 -24 55 -35 85 -54 139 -199 369
-315 499 -166 186 -334 318 -565 444 -30 16 -102 56 -160 87 -101 55 -164 89
-315 170 -38 21 -144 78 -235 127 -91 50 -194 106 -230 125 -36 19 -101 55
-145 79 -152 82 -180 98 -250 134 -60 32 -309 167 -470 255 -27 15 -90 49
-140 75 -49 26 -103 56 -120 65 -16 10 -66 37 -110 60 -44 24 -102 55 -130 70
-240 132 -367 194 -485 237 -68 25 -265 77 -338 88 -23 4 -54 9 -70 12 -30 5
-399 13 -404 8z m412 -3180 c52 -7 106 -16 120 -19 14 -3 36 -8 50 -11 163
-31 303 -90 748 -313 l434 -217 -5 -605 c-2 -333 -6 -614 -9 -625 -3 -11 -9
-40 -13 -65 -14 -84 -16 -95 -36 -173 -125 -492 -442 -913 -888 -1181 -52 -31
-95 -56 -97 -56 -2 0 -68 -35 -146 -78 -79 -43 -188 -103 -243 -132 -55 -29
-108 -58 -117 -64 -20 -12 -43 -2 -288 136 -62 34 -134 74 -280 153 -344 188
-568 385 -760 671 -48 70 -148 257 -177 329 -42 105 -95 288 -107 369 -4 21
-9 48 -11 60 -15 61 -17 136 -22 647 -5 542 -4 557 15 595 19 37 39 49 434
246 420 211 550 265 719 303 193 42 490 56 679 30z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -1,19 +0,0 @@
{
"name": "MS-365-Electron",
"short_name": "MS-365-Electron",
"icons": [
{
"src": "/favicons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/favicons/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}

View File

@@ -1,181 +0,0 @@
body {
margin: 0;
line-height: normal;
background: linear-gradient(-72.79deg, #fec9f9, #ffdbfd 0.01%, #ecfdff 64.06%);
background-size: auto;
background-repeat: no-repeat;
background-attachment: fixed;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
text-align: center;
overflow: hidden;
}
@font-face {
font-family: "San Francisco";
font-weight: 400;
src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-regular-webfont.woff");
}
:root {
--font-san-francisco: "San Francisco";
--font-poppins: Poppins;
--font-size-sm: 14px;
--color-aliceblue-100: #f3f8ff;
--br-5xs: 8px;
--color-download: #00a7ff;
--color-github: #333;
}
.container {
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
width: 100%;
max-width: 1200px;
padding: 20px;
font-family: var(--font-poppins);
}
.ms-365-electron {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
width: 50%;
text-align: left;
}
.heading {
font-size: 85px;
line-height: 90px;
color: #292e37;
margin-bottom: 10px;
}
.byagam778 {
font-size: 38px;
line-height: 50px;
font-family: 'SF Pro Text',-apple-system,BlinkMacSystemFont,var(--font-san-francisco);
color: #00acff;
cursor: pointer;
margin-bottom: 10px;
}
.description {
font-size: 20px;
margin-bottom: 20px;
}
.buttons {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
.download,
.github {
cursor: pointer;
border: 0;
padding: 0;
background-color: transparent;
border-radius: var(--br-5xs);
width: 190px;
height: 62px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.5ms ease;
}
.download {
background: linear-gradient(90.05deg, #45bfff 26.58%, var(--color-download));
box-shadow: 0 24px 30px -16px rgba(45, 183, 255, 0.25);
}
.github {
background: linear-gradient(90.05deg, #424242 26.58%, var(--color-github));
box-shadow: 0 24px 30px -16px rgba(66, 66, 66, 0.25);
}
.download:hover {
background: transparent;
border: 3px solid var(--color-download);
color: black;
}
.github:hover {
background: transparent;
border: 3px solid var(--color-github);
color: black;
}
.download-now {
font-size: var(--font-size-sm);
line-height: 19px;
font-weight: 600;
color: var(--color-aliceblue-100);
transition: color 0.5s ease;
}
.download:hover .download-now,
.github:hover .download-now {
color: black;
}
.preview-icon {
width: 50%;
max-width: 708px;
height: auto;
object-fit: cover;
margin-left: 20px;
}
@media (max-width: 768px) {
.container {
flex-direction: column;
}
.preview-icon {
width: 100%;
margin: 0;
margin-bottom: 20px;
}
.ms-365-electron {
width: 100%;
text-align: center;
align-items: center;
}
.heading {
font-size: 30px;
line-height: 36px;
}
.byagam778 {
font-size: 26px;
}
.description {
font-size: 18px;
}
.download,
.github {
width: 160px;
height: 54px;
font-size: 16px;
}
.download-now {
font-size: 12px;
}
.buttons {
flex-direction: column;
}
}

View File

@@ -1,75 +0,0 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1, width=device-width" />
<title>MS-365-Electron</title>
<link rel="stylesheet" href="./index.css" />
<link rel="apple-touch-icon" sizes="180x180" href="./favicons/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="./favicons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="./favicons/favicon-16x16.png" />
<link rel="manifest" href="./favicons/site.webmanifest" />
<link rel="mask-icon" href="./favicons/safari-pinned-tab.svg" color="#5bbad5" />
<link rel="shortcut icon" href="./favicons/favicon.ico" />
<meta name="apple-mobile-web-app-title" content="MS-365-Electron" />
<meta name="application-name" content="MS-365-Electron" />
<meta name="msapplication-TileColor" content="#603cba" />
<meta name="msapplication-config" content="./favicons/browserconfig.xml" />
<meta name="theme-color" content="#ffffff" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Seaweed Script:wght@400&display=swap"
/>
</head>
<body>
<div class="container">
<div class="ms-365-electron">
<div class="byagam778" id="byagam778">By @agam778</div>
<div class="heading">MS-365-Electron</div>
<div class="description">
Unofficial Microsoft 365 Web Desktop Wrapper made with Electron
</div>
<div class="buttons">
<button class="download" id="download">
<div class="download-now">
Download Now:
<div id="release-tag"></div>
</div>
</button>
<button class="github" id="gitHub">
<div class="download-now">View on GitHub</div>
</button>
</div>
</div>
<img class="preview-icon" alt="" src="./public/preview.png" />
</div>
<script src="./index.js"></script>
<script>
var download = document.getElementById("download");
if (download) {
download.addEventListener("click", function () {
window.open("https://DaanSelen/MS-365-Electron/releases");
});
}
var gitHub = document.getElementById("gitHub");
if (gitHub) {
gitHub.addEventListener("click", function () {
window.open("https://DaanSelen/MS-365-Electron/");
});
}
var byagam778 = document.getElementById("byagam778");
if (byagam778) {
byagam778.addEventListener("click", function () {
window.open("https://github.com/agam778");
});
}
</script>
</body>
</html>

View File

@@ -1,14 +0,0 @@
window.addEventListener("DOMContentLoaded", () => {
const releaseTagElement = document.getElementById("release-tag");
fetch("https://api.github.com/repos/DaanSelen/MS-365-Electron/releases/latest")
.then((response) => response.json())
.then((data) => {
const latestTag = data.tag_name;
releaseTagElement.textContent = `${latestTag}`;
})
.catch((error) => {
console.error("Error:", error);
releaseTagElement.textContent = "Failed to fetch release tag";
});
});

View File

@@ -1,32 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Loading MS-365-Electron</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"
/>
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div id="particles-background" class="vertical-centered-box"></div>
<div id="particles-foreground" class="vertical-centered-box"></div>
<div class="vertical-centered-box">
<div class="content">
<div class="loader-circle"></div>
<div class="loader-line-mask">
<div class="loader-line"></div>
</div>
<img
width="50px"
height="auto"
viewBox="0 0 36 24"
src="https://DaanSelen/MS-365-Electron/raw/main/assets/icon.png"
/>
</div>
</div>
<script src="./script.js"></script>
</body>
</html>

View File

@@ -1,352 +0,0 @@
/*!
* Particleground
*
* @author Jonathan Nicol - @mrjnicol
* @version 1.1.0
* @description Creates a canvas based particle system background
*
* Inspired by http://requestlab.fr/ and http://disruptivebydesign.com/
*/
!(function (a, b) {
"use strict";
function c(a) {
a = a || {};
for (var b = 1; b < arguments.length; b++) {
var c = arguments[b];
if (c)
for (var d in c)
c.hasOwnProperty(d) && ("object" == typeof c[d] ? deepExtend(a[d], c[d]) : (a[d] = c[d]));
}
return a;
}
function d(d, g) {
function h() {
if (y) {
(r = b.createElement("canvas")),
(r.className = "pg-canvas"),
(r.style.display = "block"),
d.insertBefore(r, d.firstChild),
(s = r.getContext("2d")),
i();
for (var c = Math.round((r.width * r.height) / g.density), e = 0; c > e; e++) {
var f = new n();
f.setStackPos(e), z.push(f);
}
a.addEventListener(
"resize",
function () {
k();
},
!1
),
b.addEventListener(
"mousemove",
function (a) {
(A = a.pageX), (B = a.pageY);
},
!1
),
D &&
!C &&
a.addEventListener(
"deviceorientation",
function () {
(F = Math.min(Math.max(-event.beta, -30), 30)),
(E = Math.min(Math.max(-event.gamma, -30), 30));
},
!0
),
j(),
q("onInit");
}
}
function i() {
(r.width = d.offsetWidth),
(r.height = d.offsetHeight),
(s.fillStyle = g.dotColor),
(s.strokeStyle = g.lineColor),
(s.lineWidth = g.lineWidth);
}
function j() {
if (y) {
(u = a.innerWidth), (v = a.innerHeight), s.clearRect(0, 0, r.width, r.height);
for (var b = 0; b < z.length; b++) z[b].updatePosition();
for (var b = 0; b < z.length; b++) z[b].draw();
G || (t = requestAnimationFrame(j));
}
}
function k() {
i();
for (var a = d.offsetWidth, b = d.offsetHeight, c = z.length - 1; c >= 0; c--)
(z[c].position.x > a || z[c].position.y > b) && z.splice(c, 1);
var e = Math.round((r.width * r.height) / g.density);
if (e > z.length)
for (; e > z.length; ) {
var f = new n();
z.push(f);
}
else e < z.length && z.splice(e);
for (c = z.length - 1; c >= 0; c--) z[c].setStackPos(c);
}
function l() {
G = !0;
}
function m() {
(G = !1), j();
}
function n() {
switch (
(this.stackPos,
(this.active = !0),
(this.layer = Math.ceil(3 * Math.random())),
(this.parallaxOffsetX = 0),
(this.parallaxOffsetY = 0),
(this.position = {
x: Math.ceil(Math.random() * r.width),
y: Math.ceil(Math.random() * r.height),
}),
(this.speed = {}),
g.directionX)
) {
case "left":
this.speed.x = +(-g.maxSpeedX + Math.random() * g.maxSpeedX - g.minSpeedX).toFixed(2);
break;
case "right":
this.speed.x = +(Math.random() * g.maxSpeedX + g.minSpeedX).toFixed(2);
break;
default:
(this.speed.x = +(-g.maxSpeedX / 2 + Math.random() * g.maxSpeedX).toFixed(2)),
(this.speed.x += this.speed.x > 0 ? g.minSpeedX : -g.minSpeedX);
}
switch (g.directionY) {
case "up":
this.speed.y = +(-g.maxSpeedY + Math.random() * g.maxSpeedY - g.minSpeedY).toFixed(2);
break;
case "down":
this.speed.y = +(Math.random() * g.maxSpeedY + g.minSpeedY).toFixed(2);
break;
default:
(this.speed.y = +(-g.maxSpeedY / 2 + Math.random() * g.maxSpeedY).toFixed(2)),
(this.speed.x += this.speed.y > 0 ? g.minSpeedY : -g.minSpeedY);
}
}
function o(a, b) {
return b ? void (g[a] = b) : g[a];
}
function p() {
console.log("destroy"),
r.parentNode.removeChild(r),
q("onDestroy"),
f && f(d).removeData("plugin_" + e);
}
function q(a) {
void 0 !== g[a] && g[a].call(d);
}
var r,
s,
t,
u,
v,
w,
x,
y = !!b.createElement("canvas").getContext,
z = [],
A = 0,
B = 0,
C = !navigator.userAgent.match(
/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i
),
D = !!a.DeviceOrientationEvent,
E = 0,
F = 0,
G = !1;
return (
(g = c({}, a[e].defaults, g)),
(n.prototype.draw = function () {
s.beginPath(),
s.arc(
this.position.x + this.parallaxOffsetX,
this.position.y + this.parallaxOffsetY,
g.particleRadius / 2,
0,
2 * Math.PI,
!0
),
s.closePath(),
s.fill(),
s.beginPath();
for (var a = z.length - 1; a > this.stackPos; a--) {
var b = z[a],
c = this.position.x - b.position.x,
d = this.position.y - b.position.y,
e = Math.sqrt(c * c + d * d).toFixed(2);
e < g.proximity &&
(s.moveTo(
this.position.x + this.parallaxOffsetX,
this.position.y + this.parallaxOffsetY
),
g.curvedLines
? s.quadraticCurveTo(
Math.max(b.position.x, b.position.x),
Math.min(b.position.y, b.position.y),
b.position.x + b.parallaxOffsetX,
b.position.y + b.parallaxOffsetY
)
: s.lineTo(b.position.x + b.parallaxOffsetX, b.position.y + b.parallaxOffsetY));
}
s.stroke(), s.closePath();
}),
(n.prototype.updatePosition = function () {
if (g.parallax) {
if (D && !C) {
var a = (u - 0) / 60;
w = (E - -30) * a + 0;
var b = (v - 0) / 60;
x = (F - -30) * b + 0;
} else (w = A), (x = B);
(this.parallaxTargX = (w - u / 2) / (g.parallaxMultiplier * this.layer)),
(this.parallaxOffsetX += (this.parallaxTargX - this.parallaxOffsetX) / 10),
(this.parallaxTargY = (x - v / 2) / (g.parallaxMultiplier * this.layer)),
(this.parallaxOffsetY += (this.parallaxTargY - this.parallaxOffsetY) / 10);
}
var c = d.offsetWidth,
e = d.offsetHeight;
switch (g.directionX) {
case "left":
this.position.x + this.speed.x + this.parallaxOffsetX < 0 &&
(this.position.x = c - this.parallaxOffsetX);
break;
case "right":
this.position.x + this.speed.x + this.parallaxOffsetX > c &&
(this.position.x = 0 - this.parallaxOffsetX);
break;
default:
(this.position.x + this.speed.x + this.parallaxOffsetX > c ||
this.position.x + this.speed.x + this.parallaxOffsetX < 0) &&
(this.speed.x = -this.speed.x);
}
switch (g.directionY) {
case "up":
this.position.y + this.speed.y + this.parallaxOffsetY < 0 &&
(this.position.y = e - this.parallaxOffsetY);
break;
case "down":
this.position.y + this.speed.y + this.parallaxOffsetY > e &&
(this.position.y = 0 - this.parallaxOffsetY);
break;
default:
(this.position.y + this.speed.y + this.parallaxOffsetY > e ||
this.position.y + this.speed.y + this.parallaxOffsetY < 0) &&
(this.speed.y = -this.speed.y);
}
(this.position.x += this.speed.x), (this.position.y += this.speed.y);
}),
(n.prototype.setStackPos = function (a) {
this.stackPos = a;
}),
h(),
{ option: o, destroy: p, start: m, pause: l }
);
}
var e = "particleground",
f = a.jQuery;
(a[e] = function (a, b) {
return new d(a, b);
}),
(a[e].defaults = {
minSpeedX: 0.1,
maxSpeedX: 0.7,
minSpeedY: 0.1,
maxSpeedY: 0.7,
directionX: "center",
directionY: "center",
density: 1e4,
dotColor: "#666666",
lineColor: "#666666",
particleRadius: 7,
lineWidth: 1,
curvedLines: !1,
proximity: 100,
parallax: !0,
parallaxMultiplier: 5,
onInit: function () {},
onDestroy: function () {},
}),
f &&
(f.fn[e] = function (a) {
if ("string" == typeof arguments[0]) {
var b,
c = arguments[0],
g = Array.prototype.slice.call(arguments, 1);
return (
this.each(function () {
f.data(this, "plugin_" + e) &&
"function" == typeof f.data(this, "plugin_" + e)[c] &&
(b = f.data(this, "plugin_" + e)[c].apply(this, g));
}),
void 0 !== b ? b : this
);
}
return "object" != typeof a && a
? void 0
: this.each(function () {
f.data(this, "plugin_" + e) || f.data(this, "plugin_" + e, new d(this, a));
});
});
})(window, document),
/**
* requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
* @see: http://paulirish.com/2011/requestanimationframe-for-smart-animating/
* @see: http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
* @license: MIT license
*/ (function () {
for (
var a = 0, b = ["ms", "moz", "webkit", "o"], c = 0;
c < b.length && !window.requestAnimationFrame;
++c
)
(window.requestAnimationFrame = window[b[c] + "RequestAnimationFrame"]),
(window.cancelAnimationFrame =
window[b[c] + "CancelAnimationFrame"] || window[b[c] + "CancelRequestAnimationFrame"]);
window.requestAnimationFrame ||
(window.requestAnimationFrame = function (b) {
var c = new Date().getTime(),
d = Math.max(0, 16 - (c - a)),
e = window.setTimeout(function () {
b(c + d);
}, d);
return (a = c + d), e;
}),
window.cancelAnimationFrame ||
(window.cancelAnimationFrame = function (a) {
clearTimeout(a);
});
})();
particleground(document.getElementById("particles-foreground"), {
dotColor: "rgba(255, 255, 255, 1)",
lineColor: "rgba(255, 255, 255, 0.05)",
minSpeedX: 0.3,
maxSpeedX: 0.6,
minSpeedY: 0.3,
maxSpeedY: 0.6,
density: 50000, // One particle every n pixels
curvedLines: false,
proximity: 250, // How close two dots need to be before they join
parallaxMultiplier: 10, // Lower the number is more extreme parallax
particleRadius: 4, // Dot size
});
particleground(document.getElementById("particles-background"), {
dotColor: "rgba(255, 255, 255, 0.5)",
lineColor: "rgba(255, 255, 255, 0.05)",
minSpeedX: 0.075,
maxSpeedX: 0.15,
minSpeedY: 0.075,
maxSpeedY: 0.15,
density: 30000, // One particle every n pixels
curvedLines: false,
proximity: 20, // How close two dots need to be before they join
parallaxMultiplier: 20, // Lower the number is more extreme parallax
particleRadius: 2, // Dot size
});

View File

@@ -1,102 +0,0 @@
body {
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: "proxima-nova-soft", sans-serif;
-webkit-user-select: none;
overflow: hidden;
}
body .vertical-centered-box {
position: absolute;
width: 100%;
height: 100%;
text-align: center;
}
body .vertical-centered-box:after {
content: '';
display: inline-block;
height: 100%;
vertical-align: middle;
margin-right: -0.25em;
}
body .vertical-centered-box .content {
box-sizing: border-box;
display: inline-block;
vertical-align: middle;
text-align: left;
font-size: 0;
}
* {
transition: all 0.3s;
}
body {
background: #2c2d44;
}
.loader-circle {
position: absolute;
left: 50%;
top: 50%;
width: 120px;
height: 120px;
border-radius: 50%;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
margin-left: -60px;
margin-top: -60px;
}
.loader-line-mask {
position: absolute;
left: 50%;
top: 50%;
width: 60px;
height: 120px;
margin-left: -60px;
margin-top: -60px;
overflow: hidden;
transform-origin: 60px 60px;
-webkit-mask-image: -webkit-linear-gradient(top, #000000, rgba(0, 0, 0, 0));
animation: rotate 1.2s infinite linear;
}
.loader-line-mask .loader-line {
width: 120px;
height: 120px;
border-radius: 50%;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
#particles-background,
#particles-foreground {
left: -51%;
top: -51%;
width: 202%;
height: 202%;
transform: scale3d(0.5, 0.5, 1);
}
#particles-background {
background: #2c2d44;
background-image: -moz-linear-gradient(45deg, #3f3251 2%, #002025 100%);
background-image: -webkit-linear-gradient(45deg, #3f3251 2%, #002025 100%);
background-image: linear-gradient(45deg, #3f3251 2%, #002025 100%);
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes fade {
0% {
opacity: 1;
}
50% {
opacity: 0.25;
}
}
@keyframes fade-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 593 KiB

View File

@@ -1,28 +1,31 @@
{
"private": true,
"resolutions": {
"@electron/node-gyp": "https://github.com/electron/node-gyp.git"
},
"name": "ms-365-electron",
"version": "2.1.1",
"homepage": "https://systemec.nl",
"name": "akartonplanning",
"version": "0.2.3",
"type": "module",
"description": "Unofficial Microsoft 365 Web Desktop Wrapper made with Electron",
"description": "Systemec Microsoft 365 Web Desktop Wrapper made with Electron",
"main": "./app/main.js",
"repository": {
"type": "git",
"url": "https://github.com/DaanSelen/MS-365-Electron.git"
"url": "https://darjeeling.systemec.nl/daanselen/akartonplanning.git"
},
"author": {
"name": "Agampreet Singh",
"email": "agam778@zohomail.in",
"url": "https://agam778.is-a.dev/"
"name": "Daan Selen",
"email": "dselen@systemec.nl",
"url": "https://systemec.nl"
},
"build": {
"publish": null,
"extraFiles": [
"LICENSE"
],
"appId": "com.daanselen.ms-365-electron",
"productName": "MS-365-Electron",
"artifactName": "MS-365-Electron-v${version}-${os}-${arch}.${ext}",
"appId": "com.daanselen.akartonplanning",
"productName": "akartonplanning",
"artifactName": "akartonplanning-v${version}.${ext}",
"mac": {
"identity": "null",
"category": "public.app-category.office",
@@ -40,16 +43,10 @@
],
"icon": "./assets/icons/win/icon.ico"
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": false,
"license": "LICENSE"
},
"linux": {
"category": "Office",
"icon": "./assets/icons/png",
"executableName": "ms-365-electron",
"executableName": "akartonplanning",
"maintainer": "Daan Selen <dselen@nerthus.nl>",
"target": [
"deb"
@@ -61,21 +58,18 @@
},
"scripts": {
"start": "electron .",
"build": "electron-builder",
"build": "electron-builder --publish never",
"pack": "electron-builder --dir",
"dist": "electron-builder"
},
"license": "MIT",
"devDependencies": {
"electron": "^38.1.2",
"electron": "^40.0.0",
"electron-builder": "^26.0.20",
"eslint": "^9.36.0",
"prettier": "^3.6.2",
"prettier-eslint": "^16.4.2"
"@malept/flatpak-bundler": "0.4.0"
},
"dependencies": {
"@ghostery/adblocker-electron": "^2.11.6",
"@xhayper/discord-rpc": "^1.3.0",
"axios": "^1.12.2",
"check-internet-connected": "^2.0.6",
"cross-fetch": "^4.1.0",
@@ -83,9 +77,10 @@
"electron-dl": "^4.0.0",
"electron-log": "^5.4.3",
"electron-prompt": "^1.7.0",
"electron-store": "^10.1.0",
"electron-store": "^11.0.0",
"electron-updater": "^6.6.8",
"node-gyp": "^11.4.2"
"node-gyp": "^12.0.0",
"ajv": "^8.17.1"
},
"packageManager": "yarn@1.22.22"
}

View File

@@ -1,4 +1,7 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"]
"extends": [
"config:recommended"
],
"ignoreDeps": ["actions/upload-artifact"]
}

1650
yarn.lock

File diff suppressed because it is too large Load Diff