diff --git a/bin/copy-trilium.sh b/bin/copy-trilium.sh index 141e988e0..c8b38e25c 100755 --- a/bin/copy-trilium.sh +++ b/bin/copy-trilium.sh @@ -35,8 +35,11 @@ for f in 'package.json' 'package-lock.json' 'README.md' 'LICENSE' 'config-sample cp "$f" "$DIR"/ done +# Patch package.json main +sed -i 's/.\/dist\/electron.js/electron.js/g' "$DIR/package.json" + script_dir=$(realpath $(dirname $0)) -cp -Rv "$script_dir/../build/src" "$DIR" +cp -R "$script_dir/../build/src" "$DIR" cp "$script_dir/../build/electron.js" "$DIR" # run in subshell (so we return to original dir)