diff --git a/bin/better-sqlite3/linux-server-better_sqlite3.node b/bin/better-sqlite3/linux-server-better_sqlite3.node old mode 100644 new mode 100755 index ca173a3c6..00c00a96f Binary files a/bin/better-sqlite3/linux-server-better_sqlite3.node and b/bin/better-sqlite3/linux-server-better_sqlite3.node differ diff --git a/bin/better-sqlite3/update.sh b/bin/better-sqlite3/update.sh index 235cf5d24..1f9ef8ba7 100755 --- a/bin/better-sqlite3/update.sh +++ b/bin/better-sqlite3/update.sh @@ -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" \ No newline at end of file +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" \ No newline at end of file