Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 773d16f

Browse files
committedMar 14, 2025·
Update install script
1 parent 42ea00d commit 773d16f

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed
 

‎install.sh

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ detect_architecture() {
2828
echo "x86_64"
2929
;;
3030
aarch64|arm64)
31-
echo "aarch64"
31+
echo "arm64"
32+
;;
33+
i386|i686)
34+
echo "i386"
3235
;;
3336
*)
3437
print_error "Unsupported architecture: $arch"
@@ -40,10 +43,10 @@ detect_os() {
4043
local os=$(uname -s)
4144
case $os in
4245
Linux)
43-
echo "unknown-linux-gnu"
46+
echo "Linux"
4447
;;
4548
Darwin)
46-
echo "apple-darwin"
49+
echo "Darwin"
4750
;;
4851
*)
4952
print_error "Unsupported operating system: $os"
@@ -54,19 +57,8 @@ detect_os() {
5457
download_release() {
5558
local os=$1
5659
local arch=$2
57-
local binary_name="${PROGRAM_NAME}-${arch}-${os}.tar.gz"
60+
local binary_name="${PROGRAM_NAME}_${os}_${arch}.tar.gz"
5861

59-
# Handle universal binary for macOS
60-
if [ "$os" = "apple-darwin" ] && [ "$arch" = "x86_64" ]; then
61-
# Try universal binary first
62-
binary_name="${PROGRAM_NAME}-universal-${os}.tar.gz"
63-
local download_url="https://github.com/${GITHUB_REPO}/releases/latest/download/${binary_name}"
64-
if ! curl --output /dev/null --silent --head --fail "$download_url"; then
65-
# Fall back to architecture-specific binary if universal not found
66-
binary_name="${PROGRAM_NAME}-${arch}-${os}.tar.gz"
67-
fi
68-
fi
69-
7062
local download_url="https://github.com/${GITHUB_REPO}/releases/latest/download/${binary_name}"
7163
print_message "Downloading latest release: ${binary_name}..."
7264
local temp_dir=$(mktemp -d)

0 commit comments

Comments
 (0)
Please sign in to comment.