updated build script to package both linux and windows distribution packages with xz and 7zip

This commit is contained in:
azivner 2017-12-24 23:14:19 -05:00
parent 8c79779060
commit cdede3240c
2 changed files with 7 additions and 3 deletions

View file

@ -17,8 +17,12 @@ cp -r ../trilium-node-binaries/scrypt/* node_modules/scrypt/bin/
# 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/
VERSION=`jq -r ".version" package.json`
echo "Packaging windows distribution..."
# possibly use zip: zip -r myfiles.zip mydir
7z a dist/trilium-windows-${VERSION}.7z dist/trilium-win32-x64
echo "Packaging linux distribution..."
tar cfJ dist/trilium-linux-${VERSION}.tar.xz dist/trilium-linux-x64
tar cfJ dist/win.tar.xz dist/trilium-win32-x64

View file

@ -1 +1 @@
module.exports = { build_date:"2017-12-23T14:02:07-05:00", build_revision: "51215cba1bd2da8a539e86dbd31004cf9adb3f93" };
module.exports = { build_date:"2017-12-24T23:10:42-05:00", build_revision: "8c7977906083eb7f7c793ad1e1dc1c9bc575f4bd" };