File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,10 @@ detect_architecture() {
28
28
echo " x86_64"
29
29
;;
30
30
aarch64|arm64)
31
- echo " aarch64"
31
+ echo " arm64"
32
+ ;;
33
+ i386|i686)
34
+ echo " i386"
32
35
;;
33
36
* )
34
37
print_error " Unsupported architecture: $arch "
@@ -40,10 +43,10 @@ detect_os() {
40
43
local os=$( uname -s)
41
44
case $os in
42
45
Linux)
43
- echo " unknown-linux-gnu "
46
+ echo " Linux "
44
47
;;
45
48
Darwin)
46
- echo " apple-darwin "
49
+ echo " Darwin "
47
50
;;
48
51
* )
49
52
print_error " Unsupported operating system: $os "
@@ -54,19 +57,8 @@ detect_os() {
54
57
download_release () {
55
58
local os=$1
56
59
local arch=$2
57
- local binary_name=" ${PROGRAM_NAME} - ${arch} - ${os } .tar.gz"
60
+ local binary_name=" ${PROGRAM_NAME} _ ${os} _ ${arch } .tar.gz"
58
61
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
-
70
62
local download_url=" https://github.com/${GITHUB_REPO} /releases/latest/download/${binary_name} "
71
63
print_message " Downloading latest release: ${binary_name} ..."
72
64
local temp_dir=$( mktemp -d)
You can’t perform that action at this time.
0 commit comments