fix-sandbox

This commit is contained in:
stark81
2026-04-11 16:01:06 +08:00
parent 33fc4f768c
commit 3f31278131
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
const { execSync } = require('child_process');
if (process.platform === 'linux') {
// You need to make sure that
// /home/runner/work/VutronMusic/VutronMusic/node_modules/electron/dist/chrome-sandbox
// is owned by root and has mode 4755.
execSync('sudo chown root:root ./node_modules/electron/dist/chrome-sandbox');
execSync('sudo chmod 4755 ./node_modules/electron/dist/chrome-sandbox');
}