From 9bd31698e144c0703994dad948482136165192bb Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Sun, 9 Mar 2025 10:06:55 +0100 Subject: [PATCH] build(copy-trilium): use "|" as sed separator allows us to avoid having to escape "/" --- bin/copy-trilium.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/copy-trilium.sh b/bin/copy-trilium.sh index e7e688bff..55c5cf6de 100755 --- a/bin/copy-trilium.sh +++ b/bin/copy-trilium.sh @@ -16,7 +16,7 @@ npm run build:prepare-dist echo Build finished # Patch package.json main -sed -i 's/.\/dist\/electron-main.js/electron-main.js/g' "$BUILD_DIR/package.json" +sed -i 's|./dist/electron-main.js|electron-main.js|g' "$BUILD_DIR/package.json" # run in subshell (so we return to original dir) (cd $BUILD_DIR && npm ci --omit=dev)