Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
release scripts fixes
azivner87e7828440a9
diff --git a/bin/build.sh b/bin/build.shindex 20a9c84d4a..902cde7f71 100755--- a/bin/build.sh+++ b/bin/build.sh@@ -1,7 +1,5 @@#!/usr/bin/env bash-echo 'module.exports = { build_date:"'`date --iso-8601=seconds`'", build_revision: "'`git log -1 --format="%H"`'" };' > services/build.js-echo "Deleting dist"rm -r dist/*diff --git a/bin/release.sh b/bin/release.shindex 28d2dd9b99..559a09fdb7 100755--- a/bin/release.sh+++ b/bin/release.sh@@ -18,35 +18,49 @@ if ! git diff-index --quiet HEAD --; thenexit 1fi+echo "Releasing Trilium $VERSION"+jq '.version = "'$VERSION'"' package.json|sponge package.json+echo 'module.exports = { build_date:"'`date --iso-8601=seconds`'", build_revision: "'`git log -1 --format="%H"`'" };' > services/build.js+TAG=v$VERSION-git commit -m "$VERSION"+echo "Committing package.json version change"++git commit -m "release $VERSION"git push+echo "Tagging commit with $TAG"+git tag $TAGgit push origin $TAG-echo "Releasing Trilium $VERSION"+bin/build.sh-build--package+bin/package.shLINUX_BUILD=trilium-linux-$VERSION.7zWINDOWS_BUILD=trilium-windows-$VERSION.7z+echo "Creating release in GitHub"+github-release release \--tag $TAG \--name "$TAG release"+echo "Uploading linux build"+github-release upload \--tag $TAG \--name "$LINUX_BUILD" \--file "dist/$LINUX_BUILD"+echo "Uploading windows build"+github-release upload \--tag $TAG \--name "$WINDOWS_BUILD" \- --file "dist/$WINDOWS_BUILD"\ No newline at end of file+ --file "dist/$WINDOWS_BUILD"++echo "Release finished!"\ No newline at end of file