2017-12-26 04:01:33 +08:00
|
|
|
#!/usr/bin/env bash
|
2017-11-06 06:58:55 +08:00
|
|
|
|
2017-11-09 09:48:48 +08:00
|
|
|
echo "Deleting dist"
|
|
|
|
|
2017-11-06 07:31:22 +08:00
|
|
|
rm -r dist/*
|
|
|
|
|
2017-11-09 09:48:48 +08:00
|
|
|
cp -r ../trilium-node-binaries/sqlite/* node_modules/sqlite3/lib/binding/
|
|
|
|
|
|
|
|
cp -r ../trilium-node-binaries/scrypt/* node_modules/scrypt/bin/
|
|
|
|
|
2017-12-28 06:39:41 +08:00
|
|
|
./node_modules/.bin/electron-rebuild --arch=ia32
|
2017-11-06 07:31:22 +08:00
|
|
|
|
2017-12-28 06:39:41 +08:00
|
|
|
./node_modules/.bin/electron-packager . --out=dist --platform=linux --arch=ia32 --overwrite
|
|
|
|
|
|
|
|
./node_modules/.bin/electron-rebuild --arch=x64
|
|
|
|
|
|
|
|
./node_modules/.bin/electron-packager . --out=dist --platform=linux --arch=x64 --overwrite
|
|
|
|
|
|
|
|
./node_modules/.bin/electron-packager . --out=dist --platform=win32 --arch=x64 --overwrite
|
2017-11-06 06:58:55 +08:00
|
|
|
|
2017-11-09 09:48:48 +08:00
|
|
|
# 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/
|