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() {
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() {
5457download_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)
You can’t perform that action at this time.
0 commit comments