mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 23:31:33 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			485 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			485 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/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
 | 
						|
 | 
						|
pkg . --targets node8-linux-x64 --output ${PKG_DIR}/trilium
 | 
						|
 | 
						|
chmod +x ${PKG_DIR}/trilium
 | 
						|
 | 
						|
cp node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node ${PKG_DIR}/
 | 
						|
cp node_modules/scrypt/build/Release/scrypt.node ${PKG_DIR}/
 | 
						|
 | 
						|
cd dist
 | 
						|
 | 
						|
7z a trilium-linux-x64-server-${VERSION}.7z trilium-linux-x64-server |