Skip to content

Commit

Permalink
build: Update bettersqlite3 binary for Linux server
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jul 17, 2024
1 parent 0a983fc commit 1f6188e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Binary file modified bin/better-sqlite3/linux-server-better_sqlite3.node
100644 → 100755
Binary file not shown.
19 changes: 11 additions & 8 deletions bin/better-sqlite3/update.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"

0 comments on commit 1f6188e

Please sign in to comment.