From cdede3240cd5e961bfab767170303ffc621b9b87 Mon Sep 17 00:00:00 2001 From: azivner Date: Sun, 24 Dec 2017 23:14:19 -0500 Subject: [PATCH] updated build script to package both linux and windows distribution packages with xz and 7zip --- build.sh | 8 ++++++-- services/build.js | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index c456d889c..501af3e5d 100755 --- a/build.sh +++ b/build.sh @@ -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 \ No newline at end of file diff --git a/services/build.js b/services/build.js index da774956e..2de7cbfb9 100644 --- a/services/build.js +++ b/services/build.js @@ -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" };