fix(build): linux server failing due to missing legacy deps

This commit is contained in:
Elian Doran 2024-12-14 08:56:38 +02:00
parent adf676253d
commit 3e710fbdf5
No known key found for this signature in database

View File

@ -44,7 +44,7 @@ cp -R "$script_dir/../build/src" "$DIR"
cp "$script_dir/../build/electron-main.js" "$DIR" cp "$script_dir/../build/electron-main.js" "$DIR"
# run in subshell (so we return to original dir) # run in subshell (so we return to original dir)
(cd $DIR && npm install --omit=dev) (cd $DIR && npm install --omit=dev --legacy-peer-deps)
if [[ -d "$DIR"/node_modules ]]; then if [[ -d "$DIR"/node_modules ]]; then
# cleanup of useless files in dependencies # cleanup of useless files in dependencies