mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	build: Update bettersqlite3 binary for Linux server
This commit is contained in:
		| @@ -1,11 +1,13 @@ | ||||
| #!/usr/bin/env bash | ||||
| ELECTRON_VERSION=125 | ||||
| ELECTRON_VERSION="electron-v125" | ||||
| NODE_VERSION="node-v115" | ||||
| BETTER_SQLITE3_VERSION=11.1.2 | ||||
|  | ||||
| function download() { | ||||
|     platform="$1" | ||||
|     dest_name="$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 | ||||
|     version="$1" | ||||
|     platform="$2" | ||||
|     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" | ||||
|     curl -L "$url" -o "$temp_file" | ||||
|     tar -xzvf "$temp_file" | ||||
| @@ -17,7 +19,8 @@ function download() { | ||||
| script_dir=$(realpath $(dirname $0)) | ||||
| cd "$script_dir" | ||||
|  | ||||
| download "linux-x64" "linux-desktop" | ||||
| download "win32-x64" "win" | ||||
| download "darwin-x64" "mac-x64" | ||||
| download "darwin-arm64" "mac-arm64" | ||||
| download $NODE_VERSION "linux-x64" "linux-server" | ||||
| download $ELECTRON_VERSION "linux-x64" "linux-desktop" | ||||
| download $ELECTRON_VERSION "win32-x64" "win" | ||||
| download $ELECTRON_VERSION "darwin-x64" "mac-x64" | ||||
| download $ELECTRON_VERSION "darwin-arm64" "mac-arm64" | ||||
		Reference in New Issue
	
	Block a user