From 263ac299d0f4bb3f936897842bd085166e49f2a0 Mon Sep 17 00:00:00 2001 From: azivner Date: Mon, 30 Jul 2018 14:18:43 +0200 Subject: [PATCH] fix pkg building --- bin/build-pkg.sh | 9 ++++++++- bin/release.sh | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bin/build-pkg.sh b/bin/build-pkg.sh index ba0840637..7c336c7b6 100755 --- a/bin/build-pkg.sh +++ b/bin/build-pkg.sh @@ -1,5 +1,12 @@ #!/usr/bin/env bash +if [[ $# -eq 0 ]] ; then + echo "Missing argument of new version" + exit 1 +fi + +VERSION=$1 + PKG_DIR=dist/trilium-linux-x64-server mkdir $PKG_DIR @@ -13,4 +20,4 @@ cp node_modules/scrypt/build/Release/scrypt.node ${PKG_DIR}/ cd dist -7z a trilium-linux-x64-server.7z trilium-linux-x64-server \ No newline at end of file +7z a trilium-linux-x64-${VERSION}-server.7z trilium-linux-x64-server \ No newline at end of file diff --git a/bin/release.sh b/bin/release.sh index a0997184f..e8d2fae32 100755 --- a/bin/release.sh +++ b/bin/release.sh @@ -78,7 +78,7 @@ github-release upload \ echo "Packaging server version" -npm run build-pkg +bin/build-pkg.sh $VERSION github-release upload \ --tag $TAG \