mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-02 19:36:12 +01:00 
			
		
		
		
	initial debian package support
This commit is contained in:
		
							
								
								
									
										7
									
								
								bin/build-debian.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										7
									
								
								bin/build-debian.sh
									
									
									
									
									
										Executable file
									
								
							@@ -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
 | 
			
		||||
@@ -15,4 +15,7 @@ bin/build-mac-x64.sh
 | 
			
		||||
# building X64 linux as the last so electron-rebuild will prepare X64 binaries for local development
 | 
			
		||||
bin/build-linux-x64.sh
 | 
			
		||||
 | 
			
		||||
# this needs to be run after linux build
 | 
			
		||||
bin/build-debian.sh
 | 
			
		||||
 | 
			
		||||
bin/build-server.sh
 | 
			
		||||
							
								
								
									
										14
									
								
								bin/deb-options.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								bin/deb-options.json
									
									
									
									
									
										Normal file
									
								
							@@ -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": "zadam.apps@gmail.com",
 | 
			
		||||
  "homepage": "https://github.com/zadam/trilium",
 | 
			
		||||
  "bin": "trilium",
 | 
			
		||||
  "icon": "dist/trilium-linux-x64/icon.png",
 | 
			
		||||
  "categories": [ "Office" ]
 | 
			
		||||
}
 | 
			
		||||
@@ -43,6 +43,7 @@ git push origin $TAG
 | 
			
		||||
bin/build.sh
 | 
			
		||||
 | 
			
		||||
LINUX_X64_BUILD=trilium-linux-x64-$VERSION.tar.xz
 | 
			
		||||
DEBIAN_X64_BUILD=trilium_$VERSION_amd64.deb
 | 
			
		||||
WINDOWS_X64_BUILD=trilium-windows-x64-$VERSION.zip
 | 
			
		||||
MAC_X64_BUILD=trilium-mac-x64-$VERSION.zip
 | 
			
		||||
SERVER_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" \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user