Skip to content

Commit

Permalink
build: Fix ".node is not a valid Win32 application"
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jul 20, 2024
1 parent 03ab41b commit 8665955
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/build-win-x64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ rm -r $SRC_DIR/src/public/app-dist/*.mobile.*

echo "Packaging windows x64 electron build"

./node_modules/.bin/electron-packager $SRC_DIR --asar --out=dist --executable-name=trilium --platform=win32 --arch=x64 --overwrite --icon=images/app-icons/win/icon.ico
./node_modules/.bin/electron-packager $SRC_DIR \
--out=dist \
--asar.unpack="*.{node,dll}" \
--executable-name=trilium \
--platform=win32 \
--arch=x64 \
--overwrite \
--icon=images/app-icons/win/icon.ico

BUILD_DIR=./dist/trilium-windows-x64
rm -rf $BUILD_DIR
Expand Down

0 comments on commit 8665955

Please sign in to comment.