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
initial debian package support
zadamff67b8a0ba9c
diff --git a/bin/build-debian.sh b/bin/build-debian.shnew file mode 100755index 0000000000..bf71aa77b8--- /dev/null+++ b/bin/build-debian.sh@@ -0,0 +1,7 @@+#!/usr/bin/env bash++echo "Packaging debian x64 distribution..."++VERSION=`jq -r ".version" package.json`++./node_modules/.bin/electron-installer-debian --config bin/deb-options.json --options.version=${VERSION} --arch amd64\ No newline at end of filediff --git a/bin/build.sh b/bin/build.shindex 37339ca495..c19fb5dc6c 100755--- a/bin/build.sh+++ b/bin/build.sh@@ -15,4 +15,7 @@ bin/build-mac-x64.sh# building X64 linux as the last so electron-rebuild will prepare X64 binaries for local developmentbin/build-linux-x64.sh+# this needs to be run after linux build+bin/build-debian.sh+bin/build-server.sh\ No newline at end of filediff --git a/bin/deb-options.json b/bin/deb-options.jsonnew file mode 100644index 0000000000..e9a02348ba--- /dev/null+++ b/bin/deb-options.json@@ -0,0 +1,14 @@+{+ "src": "dist/trilium-linux-x64",+ "dest": "dist/",+ "name": "trilium",+ "productName": "Trilium Notes",+ "genericName": "Note taker",+ "description": "Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases.",+ "sections": "misc",+ "maintainer": "[email protected]",+ "homepage": "https://github.com/zadam/trilium",+ "bin": "trilium",+ "icon": "dist/trilium-linux-x64/icon.png",+ "categories": [ "Office" ]+}\ No newline at end of filediff --git a/bin/release.sh b/bin/release.shindex fe18b24bcf..066a3c7547 100755--- a/bin/release.sh+++ b/bin/release.sh@@ -43,6 +43,7 @@ git push origin $TAGbin/build.shLINUX_X64_BUILD=trilium-linux-x64-$VERSION.tar.xz+DEBIAN_X64_BUILD=trilium_$VERSION_amd64.debWINDOWS_X64_BUILD=trilium-windows-x64-$VERSION.zipMAC_X64_BUILD=trilium-mac-x64-$VERSION.zipSERVER_BUILD=trilium-linux-x64-server-$VERSION.tar.xz@@ -61,6 +62,13 @@ github-release release \echo "Uploading linux x64 build"+github-release upload \+ --tag $TAG \+ --name "DEBIAN_X64_BUILD" \+ --file "dist/DEBIAN_X64_BUILD"++echo "Uploading debian x64 package"+github-release upload \--tag $TAG \--name "$LINUX_X64_BUILD" \