build: Fix Node version incompatibility

This commit is contained in:
Elian Doran 2024-07-17 21:14:24 +03:00
parent 776d2e7402
commit 9db4e1d7d3
No known key found for this signature in database

View File

@ -41,6 +41,7 @@ cp "$script_dir/../build/electron.js" "$DIR"
# run in subshell (so we return to original dir)
(cd $DIR && npm install --only=prod)
(cd $DIR && npm run switch-electron)
if [[ -d "$DIR"/node_modules ]]; then
# cleanup of useless files in dependencies