Skip to content

Commit

Permalink
fix electron (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
qqdasb authored Jan 20, 2025
1 parent 274c125 commit d717711
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/update-electron
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ if [ "$BUILD_ARCH" == "" ];then
BUILD_ARCH="x64"
elif [ "$BUILD_ARCH" == "amd64" ];then
BUILD_ARCH="x64"
elif [ "$BUILD_ARCH" == "arm64" ];then
BUILD_ARCH="arm64"
fi
download_url="https://npmmirror.com/mirrors/electron/${electron_version}/electron-v${electron_version}-linux-${BUILD_ARCH}.zip"
download_url="https://github.com/electron/electron/releases/download/v${electron_version}/electron-v${electron_version}-linux-${BUILD_ARCH}.zip"
Expand Down Expand Up @@ -51,4 +53,4 @@ if [[ ! -f "$root_dir/cache/electron-v${electron_version}-linux-${BUILD_ARCH}.zi
fi
rm -rf "$root_dir/electron"
mkdir -p "$root_dir/electron"
unzip -o -d "$root_dir/electron" "$root_dir/cache/electron-v${electron_version}-linux-${BUILD_ARCH}.zip"
unzip -o -d "$root_dir/electron" "$root_dir/cache/electron-v${electron_version}-linux-${BUILD_ARCH}.zip"

0 comments on commit d717711

Please sign in to comment.