Use custom init script instead of postinstall (#5384)

* Use custom init script instead of postinstall

* Revert changes to start scripts in src\electron

* feat: add --ignore-scripts flag to npm install commands in batch and shell scripts

* feat: add --ignore-scripts flag to npm ci in Dockerfile
This commit is contained in:
Cohee
2026-04-01 23:34:00 +03:00
committed by GitHub
parent 04ef0632ee
commit e2d8c0200f
11 changed files with 18 additions and 13 deletions
+2 -1
View File
@@ -102,7 +102,8 @@ if %errorlevel% neq 0 (
echo Installing npm packages and starting server
set NODE_ENV=production
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev
call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev --ignore-scripts
call npm run init
node server.js %*
:end