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

in preparation to get rid of the file altogether - rest of the functionality will be merged into copy-dist.ts
This commit is contained in:
Panagiotis Papadopoulos 2025-03-16 01:04:17 +01:00
parent 17d5fdb4b0
commit 1640000291
2 changed files with 6 additions and 5 deletions

View File

@ -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}

View File

@ -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"