mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	build: Increase error strictness
This commit is contained in:
		
							parent
							
								
									c39d131426
								
							
						
					
					
						commit
						dd14ba9e0e
					
				| @ -1,5 +1,7 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| 
 | 
 | ||||||
|  | set -e  # Fail on any command error | ||||||
|  | 
 | ||||||
| if ! command -v dpkg-deb &> /dev/null; then | if ! command -v dpkg-deb &> /dev/null; then | ||||||
|   echo "Missing command: dpkg-deb" |   echo "Missing command: dpkg-deb" | ||||||
|   exit 1 |   exit 1 | ||||||
|  | |||||||
| @ -1,5 +1,7 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| 
 | 
 | ||||||
|  | set -e  # Fail on any command error | ||||||
|  | 
 | ||||||
| VERSION=`jq -r ".version" package.json` | VERSION=`jq -r ".version" package.json` | ||||||
| SERIES=${VERSION:0:4}-latest | SERIES=${VERSION:0:4}-latest | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,5 +1,7 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| 
 | 
 | ||||||
|  | set -e  # Fail on any command error | ||||||
|  | 
 | ||||||
| if ! command -v jq &> /dev/null; then | if ! command -v jq &> /dev/null; then | ||||||
|   echo "Missing command: jq" |   echo "Missing command: jq" | ||||||
|   exit 1 |   exit 1 | ||||||
|  | |||||||
| @ -1,5 +1,7 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| 
 | 
 | ||||||
|  | set -e  # Fail on any command error | ||||||
|  | 
 | ||||||
| SRC_DIR=./dist/trilium-mac-arm64-src | SRC_DIR=./dist/trilium-mac-arm64-src | ||||||
| 
 | 
 | ||||||
| if [ "$1" != "DONTCOPY" ] | if [ "$1" != "DONTCOPY" ] | ||||||
|  | |||||||
| @ -1,5 +1,7 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| 
 | 
 | ||||||
|  | set -e  # Fail on any command error | ||||||
|  | 
 | ||||||
| SRC_DIR=./dist/trilium-mac-x64-src | SRC_DIR=./dist/trilium-mac-x64-src | ||||||
| 
 | 
 | ||||||
| if [ "$1" != "DONTCOPY" ] | if [ "$1" != "DONTCOPY" ] | ||||||
|  | |||||||
| @ -1,5 +1,7 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| 
 | 
 | ||||||
|  | set -e  # Fail on any command error | ||||||
|  | 
 | ||||||
| PKG_DIR=dist/trilium-linux-x64-server | PKG_DIR=dist/trilium-linux-x64-server | ||||||
| NODE_VERSION=20.15.1 | NODE_VERSION=20.15.1 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,5 +1,7 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| 
 | 
 | ||||||
|  | set -e  # Fail on any command error | ||||||
|  | 
 | ||||||
| if ! command -v wine &> /dev/null; then | if ! command -v wine &> /dev/null; then | ||||||
|   echo "Missing command: wine" |   echo "Missing command: wine" | ||||||
|   exit 1 |   exit 1 | ||||||
|  | |||||||
| @ -1,5 +1,7 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| 
 | 
 | ||||||
|  | set -e  # Fail on any command error | ||||||
|  | 
 | ||||||
| if ! command -v jq &> /dev/null; then | if ! command -v jq &> /dev/null; then | ||||||
|   echo "Missing command: jq" |   echo "Missing command: jq" | ||||||
|   exit 1 |   exit 1 | ||||||
| @ -40,7 +42,6 @@ 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-x64-src | ||||||
| cp -r $SRC_DIR ./dist/trilium-mac-arm64-src | cp -r $SRC_DIR ./dist/trilium-mac-arm64-src | ||||||
| 
 | 
 | ||||||
| set -e |  | ||||||
| bin/build-win-x64.sh DONTCOPY | bin/build-win-x64.sh DONTCOPY | ||||||
| 
 | 
 | ||||||
| bin/build-mac-x64.sh DONTCOPY | bin/build-mac-x64.sh DONTCOPY | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran