Skip to content

Build your personal knowledge base with Trilium Notes

build(copy-trilium): get rid of unecessary copying of files

Panagiotis Papadopoulosf8b06f063472
diff --git a/bin/copy-trilium.sh b/bin/copy-trilium.sh
index e9f733ceaa..bd3bd4a5a8 100755
--- a/bin/copy-trilium.sh
+++ b/bin/copy-trilium.sh
@@ -20,10 +20,6 @@ echo Build finished
# Patch package.json main
sed -i 's/.\/dist\/electron-main.js/electron-main.js/g' "$DIR/package.json"
-script_dir=$(realpath $(dirname $0))
-cp -R "$script_dir/../build/src" "$DIR"
-cp "$script_dir/../build/electron-main.js" "$DIR"
-
# run in subshell (so we return to original dir)
(cd $DIR && npm ci --omit=dev)
@@ -47,9 +43,4 @@ find $DIR/libraries -name "*.map" -type f -delete
find $DIR/node_modules -name "*.map" -type f -delete
find $DIR -name "*.ts" -type f -delete
-d="$DIR"/src/public
-[[ -d "$d"/app-dist ]] || mkdir -pv "$d"/app-dist
-cp -r "$d"/app/doc_notes "$d"/app-dist/
-
-rm -rf "$d"/app
unset f d DIR