From 9db4e1d7d338c4cbe400964c7cc5b53c634fbaa5 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 17 Jul 2024 21:14:24 +0300 Subject: [PATCH] build: Fix Node version incompatibility --- bin/copy-trilium.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/copy-trilium.sh b/bin/copy-trilium.sh index 2936a925b..271bc1f1a 100755 --- a/bin/copy-trilium.sh +++ b/bin/copy-trilium.sh @@ -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