mirror of
https://github.com/zadam/trilium.git
synced 2025-02-22 14:03:36 +08:00
16 lines
544 B
Bash
Executable file
16 lines
544 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
echo "Deleting dist"
|
|
|
|
rm -r dist/*
|
|
|
|
cp -r ../trilium-node-binaries/sqlite/* node_modules/sqlite3/lib/binding/
|
|
|
|
cp -r ../trilium-node-binaries/scrypt/* node_modules/scrypt/bin/
|
|
|
|
./node_modules/.bin/electron-rebuild
|
|
|
|
./node_modules/.bin/electron-packager . --out=dist --platform=linux,win32 --overwrite
|
|
|
|
# can't copy this before the packaging because the same file name is used for both linux and windows build
|
|
cp ../trilium-node-binaries/scrypt.node ./dist/trilium-win32-x64/resources/app/node_modules/scrypt/build/Release/
|