This repository was archived by the owner on Jun 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- ELECTRON_VERSION=125
2
+ ELECTRON_VERSION=" electron-v125"
3
+ NODE_VERSION=" node-v115"
3
4
BETTER_SQLITE3_VERSION=11.1.2
4
5
5
6
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
9
11
temp_file=" temp.tar.gz"
10
12
curl -L " $url " -o " $temp_file "
11
13
tar -xzvf " $temp_file "
@@ -17,7 +19,8 @@ function download() {
17
19
script_dir=$( realpath $( dirname $0 ) )
18
20
cd " $script_dir "
19
21
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"
You can’t perform that action at this time.
0 commit comments