forked from zadam/trilium
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/update_bettersqlite3' into feature/windows_theme
- Loading branch information
Showing
9 changed files
with
61 additions
and
31 deletions.
There are no files selected for viewing
Binary file modified
BIN
+85.3 KB
(100%)
bin/better-sqlite3/linux-desktop-better_sqlite3.node
100644 → 100755
Binary file not shown.
Binary file modified
BIN
+89.2 KB
(100%)
bin/better-sqlite3/linux-server-better_sqlite3.node
100644 → 100755
Binary file not shown.
Binary file modified
BIN
+67.9 KB
(100%)
bin/better-sqlite3/mac-arm64-better_sqlite3.node
100644 → 100755
Binary file not shown.
Binary file modified
BIN
-160 KB
(92%)
bin/better-sqlite3/mac-x64-better_sqlite3.node
100644 → 100755
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env bash | ||
ELECTRON_VERSION="electron-v125" | ||
NODE_VERSION="node-v115" | ||
|
||
if ! command -v jq &> /dev/null; then | ||
echo "Missing command: jq" | ||
exit 1 | ||
fi | ||
|
||
script_dir=$(realpath $(dirname $0)) | ||
cd "$script_dir" | ||
BETTER_SQLITE3_VERSION=$(jq -r '.dependencies.["better-sqlite3"]' ../../package.json | grep -oP "\d+\.\d+\.\d+") | ||
|
||
if [ -z $BETTER_SQLITE3_VERSION ]; then | ||
echo "Unable to determine better-sqlite3 version." | ||
exit 2 | ||
fi | ||
|
||
echo "Version: $BETTER_SQLITE3_VERSION" | ||
|
||
function download() { | ||
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" | ||
mv build/Release/better_sqlite3.node "$dest_name-better_sqlite3.node" | ||
rm -rf build | ||
rm -f "$temp_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" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters