Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
build(copy-trilium): use "build:prepare-dist" build script
Panagiotis Papadopoulosc89d86acb188
diff --git a/bin/copy-trilium.sh b/bin/copy-trilium.shindex 05bb4dee90..e9f733ceaa 100755--- a/bin/copy-trilium.sh+++ b/bin/copy-trilium.sh@@ -12,29 +12,10 @@ if ! [[ $(which npm) ]]; thenexit 1fi-# Trigger the TypeScript build-echo TypeScript build start-npm run build:ts-echo TypeScript build finished--# Copy the TypeScript artifacts-DIR="$1"-rm -rf "$DIR"-mkdir -pv "$DIR"--echo Webpack start-npm run build:webpack-echo Webpack finish--echo "Copying Trilium to build directory $DIR"--for d in 'images' 'libraries' 'src' 'db'; do- cp -r "$d" "$DIR"/-done--for f in 'package.json' 'package-lock.json' 'README.md' 'LICENSE' 'config-sample.ini'; do- cp "$f" "$DIR"/-done+# Trigger the build+echo Build start+npm run build:prepare-dist+echo Build finished# Patch package.json mainsed -i 's/.\/dist\/electron-main.js/electron-main.js/g' "$DIR/package.json"