[UPD] build: deny electron-winstaller's install script explicitly
npm 11 runs no install script it has not been told about and warns at each install. electron-winstaller only builds Squirrel installers for Windows; the Windows target here is the portable executable, so its script (picking a 7-Zip binary) is never needed. Denying it in allowScripts records that choice and silences the warning on ./run.sh and ./install_dev.sh. Checked: npm install-scripts ls reports nothing unreviewed; 353 tests. --- FR --- [UPD] construction : refuser nommément le script d'electron-winstaller npm 11 ne lance aucun script d'installation qu'on ne lui a pas nommé et le signale à chaque installation. electron-winstaller ne sert qu'aux installateurs Squirrel de Windows ; la cible Windows est ici l'exécutable portable, et son script (le choix d'un 7-Zip) n'y sert jamais. Le refuser dans allowScripts inscrit ce choix et tait l'avertissement de ./run.sh. Vérifié : npm install-scripts ls ne signale plus rien ; 353 épreuves. Assisted-by: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EUXSGcwCLSC69FWEdCtWSb
This commit is contained in:
parent
9530eca507
commit
481f6a6bae
1 changed files with 3 additions and 0 deletions
|
|
@ -33,5 +33,8 @@
|
|||
"svelte": "^5.57.1",
|
||||
"vite": "^8.3.2",
|
||||
"vitest": "^5.0.3"
|
||||
},
|
||||
"allowScripts": {
|
||||
"electron-winstaller": false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue