From 481f6a6baee04e8ad8038cc68af94b0d587f1bf5 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Tue, 6 Oct 2026 23:17:57 -0400 Subject: [PATCH] [UPD] build: deny electron-winstaller's install script explicitly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 4f2e536..03e9271 100644 --- a/package.json +++ b/package.json @@ -33,5 +33,8 @@ "svelte": "^5.57.1", "vite": "^8.3.2", "vitest": "^5.0.3" + }, + "allowScripts": { + "electron-winstaller": false } }