mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			528 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			528 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
set -e  # Fail on any command error
 | 
						|
 | 
						|
if ! command -v dpkg-deb &> /dev/null; then
 | 
						|
  echo "Missing command: dpkg-deb"
 | 
						|
  exit 1
 | 
						|
fi
 | 
						|
 | 
						|
if dpkg-deb 2>&1 | grep BusyBox &> /dev/null; then
 | 
						|
  echo "The dpkg-deb binary provided by BusyBox is not compatible. The Debian tool needs to be used instead."
 | 
						|
  exit 1
 | 
						|
fi
 | 
						|
 | 
						|
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
 |