mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
build: Update bettersqlite3 binary for macOS
This commit is contained in:
parent
d73b10d10d
commit
aa6cf1f11c
Binary file not shown.
Binary file not shown.
19
bin/better-sqlite3/update.sh
Normal file
19
bin/better-sqlite3/update.sh
Normal file
@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
ELECTRON_VERSION=125
|
||||
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
|
||||
temp_file="temp.tar.gz"
|
||||
curl -L "$url" -o "$temp_file"
|
||||
tar -xzvf "$temp_file"
|
||||
mv build/Release/better_sqlite3.node "$dest_name-better_sqlite3.node"
|
||||
rm -rf build
|
||||
rm -f "$temp_file"
|
||||
}
|
||||
|
||||
download "win32-x64" "win"
|
||||
download "darwin-x64" "mac-x64"
|
||||
download "darwin-arm64" "mac-arm64"
|
Loading…
x
Reference in New Issue
Block a user