mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	build(build.sh): remove unused build script
this is not used anymore at all, it was replaced by GitHub CI Actions it even mentions several other scripts, that got removed in the meantime as well
This commit is contained in:
		
							parent
							
								
									36fad35be5
								
							
						
					
					
						commit
						3450066214
					
				
							
								
								
									
										53
									
								
								bin/build.sh
									
									
									
									
									
								
							
							
						
						
									
										53
									
								
								bin/build.sh
									
									
									
									
									
								
							@ -1,53 +0,0 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
set -e  # Fail on any command error
 | 
			
		||||
 | 
			
		||||
if ! command -v jq &> /dev/null; then
 | 
			
		||||
  echo "Missing command: jq"
 | 
			
		||||
  exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if ! command -v fakeroot &> /dev/null; then
 | 
			
		||||
  echo "Missing command: fakeroot"
 | 
			
		||||
  exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
 | 
			
		||||
if ! command -v wine &> /dev/null; then
 | 
			
		||||
  echo "Missing command: wine"
 | 
			
		||||
  exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
echo "Deleting existing builds"
 | 
			
		||||
 | 
			
		||||
rm -rf dist/*
 | 
			
		||||
 | 
			
		||||
SRC_DIR=dist/trilium-src
 | 
			
		||||
 | 
			
		||||
bin/copy-trilium.sh $SRC_DIR
 | 
			
		||||
 | 
			
		||||
# we'll just copy the same SRC dir to all the builds so we don't have to do npm install in each separately
 | 
			
		||||
cp -r $SRC_DIR ./dist/trilium-linux-x64-src
 | 
			
		||||
cp -r $SRC_DIR ./dist/trilium-linux-x64-server
 | 
			
		||||
cp -r $SRC_DIR ./dist/trilium-windows-x64-src
 | 
			
		||||
cp -r $SRC_DIR ./dist/trilium-mac-x64-src
 | 
			
		||||
cp -r $SRC_DIR ./dist/trilium-mac-arm64-src
 | 
			
		||||
 | 
			
		||||
bin/build-win-x64.sh DONTCOPY
 | 
			
		||||
 | 
			
		||||
bin/build-mac-x64.sh DONTCOPY
 | 
			
		||||
 | 
			
		||||
bin/build-mac-arm64.sh DONTCOPY
 | 
			
		||||
 | 
			
		||||
bin/build-linux-x64.sh DONTCOPY
 | 
			
		||||
 | 
			
		||||
bin/build-server.sh DONTCOPY
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user