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

Commit 2a57765

Browse files
committed
build: Update bettersqlite3 binary for Linux server
1 parent 42c0a55 commit 2a57765

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

bin/better-sqlite3/linux-server-better_sqlite3.node

100644100755
89.2 KB
Binary file not shown.

bin/better-sqlite3/update.sh

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#!/usr/bin/env bash
2-
ELECTRON_VERSION=125
2+
ELECTRON_VERSION="electron-v125"
3+
NODE_VERSION="node-v115"
34
BETTER_SQLITE3_VERSION=11.1.2
45

56
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
7+
version="$1"
8+
platform="$2"
9+
dest_name="$3"
10+
url=https://github.com/WiseLibs/better-sqlite3/releases/download/v${BETTER_SQLITE3_VERSION}/better-sqlite3-v${BETTER_SQLITE3_VERSION}-${version}-${platform}.tar.gz
911
temp_file="temp.tar.gz"
1012
curl -L "$url" -o "$temp_file"
1113
tar -xzvf "$temp_file"
@@ -17,7 +19,8 @@ function download() {
1719
script_dir=$(realpath $(dirname $0))
1820
cd "$script_dir"
1921

20-
download "linux-x64" "linux-desktop"
21-
download "win32-x64" "win"
22-
download "darwin-x64" "mac-x64"
23-
download "darwin-arm64" "mac-arm64"
22+
download $NODE_VERSION "linux-x64" "linux-server"
23+
download $ELECTRON_VERSION "linux-x64" "linux-desktop"
24+
download $ELECTRON_VERSION "win32-x64" "win"
25+
download $ELECTRON_VERSION "darwin-x64" "mac-x64"
26+
download $ELECTRON_VERSION "darwin-arm64" "mac-arm64"

0 commit comments

Comments
 (0)