2017-12-25 15:01:33 -05:00
|
|
|
#!/usr/bin/env bash
|
2017-11-05 17:58:55 -05:00
|
|
|
|
2017-11-08 20:48:48 -05:00
|
|
|
echo "Deleting dist"
|
|
|
|
|
2017-11-05 18:31:22 -05:00
|
|
|
rm -r dist/*
|
|
|
|
|
2018-01-07 11:49:35 -05:00
|
|
|
cp -r bin/deps/sqlite/* node_modules/sqlite3/lib/binding/
|
|
|
|
cp -r bin/deps/image/cjpeg.exe node_modules/mozjpeg/vendor/
|
|
|
|
cp -r bin/deps/image/pngquant.exe node_modules/pngquant-bin/vendor/
|
|
|
|
cp -r bin/deps/image/gifsicle.exe node_modules/giflossy/vendor/
|
2017-11-08 20:48:48 -05:00
|
|
|
|
2017-12-27 17:39:41 -05:00
|
|
|
./node_modules/.bin/electron-rebuild --arch=ia32
|
2017-11-05 18:31:22 -05:00
|
|
|
|
2017-12-27 17:39:41 -05: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-05 17:58:55 -05:00
|
|
|
|
2017-11-08 20:48:48 -05:00
|
|
|
# can't copy this before the packaging because the same file name is used for both linux and windows build
|
2018-01-08 20:40:20 -05:00
|
|
|
cp bin/deps/scrypt.node ./dist/trilium-win32-x64/resources/app/node_modules/scrypt/build/Release/
|