Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 8665955

Browse files
committed
build: Fix ".node is not a valid Win32 application"
See electron/packager#740.
1 parent 03ab41b commit 8665955

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bin/build-win-x64.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ rm -r $SRC_DIR/src/public/app-dist/*.mobile.*
1616

1717
echo "Packaging windows x64 electron build"
1818

19-
./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
19+
./node_modules/.bin/electron-packager $SRC_DIR \
20+
--out=dist \
21+
--asar.unpack="*.{node,dll}" \
22+
--executable-name=trilium \
23+
--platform=win32 \
24+
--arch=x64 \
25+
--overwrite \
26+
--icon=images/app-icons/win/icon.ico
2027

2128
BUILD_DIR=./dist/trilium-windows-x64
2229
rm -rf $BUILD_DIR

0 commit comments

Comments
 (0)