mirror of
https://github.com/MichMich/MagicMirror.git
synced 2026-06-03 09:51:14 +00:00
update eletron to v42 (#4144)
additional things: - removed fix chrome-sandbox permissions (runs without) - added `npx install-electron` which downloads the electron binaries new in v42: > Electron now downloads its binary into node_modules dynamically on first launch instead of running a postinstall script. Added the install-electron script to manually trigger the download as well. https://github.com/electron/electron/pull/49328
This commit is contained in:
5
.github/workflows/automated-tests.yaml
vendored
5
.github/workflows/automated-tests.yaml
vendored
@@ -64,9 +64,8 @@ jobs:
|
||||
npx playwright install --with-deps chromium
|
||||
- name: "Prepare environment for tests"
|
||||
run: |
|
||||
# Fix chrome-sandbox permissions:
|
||||
sudo chown root:root ./node_modules/electron/dist/chrome-sandbox
|
||||
sudo chmod 4755 ./node_modules/electron/dist/chrome-sandbox
|
||||
# Download electron binary
|
||||
npx install-electron
|
||||
# Start labwc
|
||||
WLR_BACKENDS=headless WLR_LIBINPUT_NO_DEVICES=1 WLR_RENDERER=pixman labwc &
|
||||
touch config/custom.css
|
||||
|
||||
683
package-lock.json
generated
683
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -123,7 +123,7 @@
|
||||
"express-basic-auth": "^1.2.1",
|
||||
"husky": "^9.1.7",
|
||||
"jsdom": "^29.1.1",
|
||||
"lint-staged": "^16.4.0",
|
||||
"lint-staged": "^17.0.2",
|
||||
"markdownlint-cli2": "^0.22.1",
|
||||
"msw": "^2.14.3",
|
||||
"playwright": "^1.59.1",
|
||||
@@ -135,7 +135,7 @@
|
||||
"vitest": "^4.1.5"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"electron": "^41.5.0"
|
||||
"electron": "^42.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=22.21.1 <23 || >=24"
|
||||
|
||||
Reference in New Issue
Block a user