Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit aa6cf1f

Browse files
committed
build: Update bettersqlite3 binary for macOS
1 parent d73b10d commit aa6cf1f

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
67.9 KB
Binary file not shown.
-160 KB
Binary file not shown.

bin/better-sqlite3/update.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
ELECTRON_VERSION=125
3+
BETTER_SQLITE3_VERSION=11.1.2
4+
5+
function download() {
6+
platform="$1"
7+
dest_name="$2"
8+
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
9+
temp_file="temp.tar.gz"
10+
curl -L "$url" -o "$temp_file"
11+
tar -xzvf "$temp_file"
12+
mv build/Release/better_sqlite3.node "$dest_name-better_sqlite3.node"
13+
rm -rf build
14+
rm -f "$temp_file"
15+
}
16+
17+
download "win32-x64" "win"
18+
download "darwin-x64" "mac-x64"
19+
download "darwin-arm64" "mac-arm64"

0 commit comments

Comments
 (0)