Skip to content

Build your personal knowledge base with Trilium Notes

build(build-server): move "build:prepare-dist" call to build-server from copy-trilium

Panagiotis Papadopoulos164000029110
diff --git a/bin/build-server.sh b/bin/build-server.sh
index 052a8131bc..fc1807ee02 100755
--- a/bin/build-server.sh
+++ b/bin/build-server.sh
@@ -26,6 +26,12 @@ NODE_VERSION=22.14.0
BUILD_DIR="./build"
DIST_DIR="./dist"
+
+# Trigger the build
+echo "Build start"
+npm run build:prepare-dist
+echo "Build finished"
+
./bin/copy-trilium.sh
NODE_FILENAME=node-v${NODE_VERSION}-linux-${ARCH}
diff --git a/bin/copy-trilium.sh b/bin/copy-trilium.sh
index 55c5cf6de1..b80c976324 100755
--- a/bin/copy-trilium.sh
+++ b/bin/copy-trilium.sh
@@ -10,11 +10,6 @@ if ! [[ $(which npm) ]]; then
exit 1
fi
-# Trigger the build
-echo Build start
-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"