mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	build: Update bettersqlite3 binary for Linux server
This commit is contained in:
		
							parent
							
								
									42c0a557b4
								
							
						
					
					
						commit
						2a57765dd9
					
				
							
								
								
									
										
											BIN
										
									
								
								bin/better-sqlite3/linux-server-better_sqlite3.node
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								bin/better-sqlite3/linux-server-better_sqlite3.node
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
										
											Binary file not shown.
										
									
								
							| @ -1,11 +1,13 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| ELECTRON_VERSION=125 | ELECTRON_VERSION="electron-v125" | ||||||
|  | NODE_VERSION="node-v115" | ||||||
| BETTER_SQLITE3_VERSION=11.1.2 | BETTER_SQLITE3_VERSION=11.1.2 | ||||||
| 
 | 
 | ||||||
| function download() { | function download() { | ||||||
|     platform="$1" |     version="$1" | ||||||
|     dest_name="$2" |     platform="$2" | ||||||
|     url=https://github.com/WiseLibs/better-sqlite3/releases/download/v${BETTER_SQLITE3_VERSION}/better-sqlite3-v${BETTER_SQLITE3_VERSION}-electron-v${ELECTRON_VERSION}-${platform}.tar.gz |     dest_name="$3" | ||||||
|  |     url=https://github.com/WiseLibs/better-sqlite3/releases/download/v${BETTER_SQLITE3_VERSION}/better-sqlite3-v${BETTER_SQLITE3_VERSION}-${version}-${platform}.tar.gz | ||||||
|     temp_file="temp.tar.gz" |     temp_file="temp.tar.gz" | ||||||
|     curl -L "$url" -o "$temp_file" |     curl -L "$url" -o "$temp_file" | ||||||
|     tar -xzvf "$temp_file" |     tar -xzvf "$temp_file" | ||||||
| @ -17,7 +19,8 @@ function download() { | |||||||
| script_dir=$(realpath $(dirname $0)) | script_dir=$(realpath $(dirname $0)) | ||||||
| cd "$script_dir" | cd "$script_dir" | ||||||
| 
 | 
 | ||||||
| download "linux-x64" "linux-desktop" | download $NODE_VERSION "linux-x64" "linux-server" | ||||||
| download "win32-x64" "win" | download $ELECTRON_VERSION "linux-x64" "linux-desktop" | ||||||
| download "darwin-x64" "mac-x64" | download $ELECTRON_VERSION "win32-x64" "win" | ||||||
| download "darwin-arm64" "mac-arm64" | download $ELECTRON_VERSION "darwin-x64" "mac-x64" | ||||||
|  | download $ELECTRON_VERSION "darwin-arm64" "mac-arm64" | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran