mirror of
https://github.com/GAM-team/GAM.git
synced 2025-05-12 04:07:21 +00:00
Update gam-install to handle arm64 and aarch64
Some checks failed
Build and test GAM / build (build, 1, Build Intel Ubuntu Jammy, ubuntu-22.04) (push) Has been cancelled
Build and test GAM / build (build, 10, Build Intel Windows, windows-2022) (push) Has been cancelled
Build and test GAM / build (build, 11, Build Arm Windows, windows-11-arm) (push) Has been cancelled
Build and test GAM / build (build, 2, Build Intel Ubuntu Noble, ubuntu-24.04) (push) Has been cancelled
Build and test GAM / build (build, 3, Build Arm Ubuntu Noble, ubuntu-24.04-arm) (push) Has been cancelled
Build and test GAM / build (build, 4, Build Arm Ubuntu Jammy, ubuntu-22.04-arm) (push) Has been cancelled
Build and test GAM / build (build, 5, Build Intel StaticX Legacy, ubuntu-22.04, yes) (push) Has been cancelled
Build and test GAM / build (build, 6, Build Arm StaticX Legacy, ubuntu-22.04-arm, yes) (push) Has been cancelled
Build and test GAM / build (build, 7, Build Intel MacOS, macos-13) (push) Has been cancelled
Build and test GAM / build (build, 8, Build Arm MacOS 14, macos-14) (push) Has been cancelled
Build and test GAM / build (build, 9, Build Arm MacOS 15, macos-15) (push) Has been cancelled
Build and test GAM / build (test, 12, Test Python 3.10, ubuntu-24.04, 3.10) (push) Has been cancelled
Build and test GAM / build (test, 13, Test Python 3.11, ubuntu-24.04, 3.11) (push) Has been cancelled
Build and test GAM / build (test, 14, Test Python 3.12, ubuntu-24.04, 3.12) (push) Has been cancelled
Build and test GAM / build (test, 15, Test Python 3.14-dev, ubuntu-24.04, 3.14-dev) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Check for Google Root CA Updates / check-apis (push) Has been cancelled
Push wiki / pushwiki (push) Has been cancelled
Build and test GAM / merge (push) Has been cancelled
Build and test GAM / publish (push) Has been cancelled
Some checks failed
Build and test GAM / build (build, 1, Build Intel Ubuntu Jammy, ubuntu-22.04) (push) Has been cancelled
Build and test GAM / build (build, 10, Build Intel Windows, windows-2022) (push) Has been cancelled
Build and test GAM / build (build, 11, Build Arm Windows, windows-11-arm) (push) Has been cancelled
Build and test GAM / build (build, 2, Build Intel Ubuntu Noble, ubuntu-24.04) (push) Has been cancelled
Build and test GAM / build (build, 3, Build Arm Ubuntu Noble, ubuntu-24.04-arm) (push) Has been cancelled
Build and test GAM / build (build, 4, Build Arm Ubuntu Jammy, ubuntu-22.04-arm) (push) Has been cancelled
Build and test GAM / build (build, 5, Build Intel StaticX Legacy, ubuntu-22.04, yes) (push) Has been cancelled
Build and test GAM / build (build, 6, Build Arm StaticX Legacy, ubuntu-22.04-arm, yes) (push) Has been cancelled
Build and test GAM / build (build, 7, Build Intel MacOS, macos-13) (push) Has been cancelled
Build and test GAM / build (build, 8, Build Arm MacOS 14, macos-14) (push) Has been cancelled
Build and test GAM / build (build, 9, Build Arm MacOS 15, macos-15) (push) Has been cancelled
Build and test GAM / build (test, 12, Test Python 3.10, ubuntu-24.04, 3.10) (push) Has been cancelled
Build and test GAM / build (test, 13, Test Python 3.11, ubuntu-24.04, 3.11) (push) Has been cancelled
Build and test GAM / build (test, 14, Test Python 3.12, ubuntu-24.04, 3.12) (push) Has been cancelled
Build and test GAM / build (test, 15, Test Python 3.14-dev, ubuntu-24.04, 3.14-dev) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Check for Google Root CA Updates / check-apis (push) Has been cancelled
Push wiki / pushwiki (push) Has been cancelled
Build and test GAM / merge (push) Has been cancelled
Build and test GAM / publish (push) Has been cancelled
This commit is contained in:
parent
677de0867b
commit
c52ee7887d
@ -194,7 +194,7 @@ fi
|
|||||||
case $gamos in
|
case $gamos in
|
||||||
[lL]inux)
|
[lL]inux)
|
||||||
gamos="linux"
|
gamos="linux"
|
||||||
download_urls=$(echo -e "$download_urls" | grep "\-linux-")
|
download_urls=$(echo -e "$download_urls" | grep -e "-linux-")
|
||||||
if [ "$osversion" == "" ]; then
|
if [ "$osversion" == "" ]; then
|
||||||
this_glibc_ver=$(ldd --version | awk '/ldd/{print $NF}')
|
this_glibc_ver=$(ldd --version | awk '/ldd/{print $NF}')
|
||||||
else
|
else
|
||||||
@ -203,7 +203,7 @@ case $gamos in
|
|||||||
echo "This Linux distribution uses glibc $this_glibc_ver"
|
echo "This Linux distribution uses glibc $this_glibc_ver"
|
||||||
case $gamarch in
|
case $gamarch in
|
||||||
x86_64)
|
x86_64)
|
||||||
download_urls=$(echo -e "$download_urls" | grep "\-x86_64-")
|
download_urls=$(echo -e "$download_urls" | grep -e "-x86_64-")
|
||||||
gam_x86_64_glibc_vers=$(echo -e "$download_urls" | \
|
gam_x86_64_glibc_vers=$(echo -e "$download_urls" | \
|
||||||
grep --only-matching 'glibc[0-9\.]*\.tar\.xz$' \
|
grep --only-matching 'glibc[0-9\.]*\.tar\.xz$' \
|
||||||
| cut -c 6-9 )
|
| cut -c 6-9 )
|
||||||
@ -218,7 +218,7 @@ case $gamos in
|
|||||||
download_url=$(echo -e "$download_urls" | grep "$useglibc")
|
download_url=$(echo -e "$download_urls" | grep "$useglibc")
|
||||||
;;
|
;;
|
||||||
arm|arm64|aarch64)
|
arm|arm64|aarch64)
|
||||||
download_urls=$(echo -e "$download_urls" | grep "\-aarch64-")
|
download_urls=$(echo -e "$download_urls" | grep -e "-arm64-\|-aarch64-")
|
||||||
gam_arm64_glibc_vers=$(echo -e "$download_urls" | \
|
gam_arm64_glibc_vers=$(echo -e "$download_urls" | \
|
||||||
grep --only-matching 'glibc[0-9\.]*\.tar\.xz$' | \
|
grep --only-matching 'glibc[0-9\.]*\.tar\.xz$' | \
|
||||||
cut -c 6-9)
|
cut -c 6-9)
|
||||||
@ -243,13 +243,13 @@ case $gamos in
|
|||||||
# override osversion only if it wasn't set by cli arguments
|
# override osversion only if it wasn't set by cli arguments
|
||||||
osversion=${osversion:-${currentversion}}
|
osversion=${osversion:-${currentversion}}
|
||||||
# override osversion only if it wasn't set by cli arguments
|
# override osversion only if it wasn't set by cli arguments
|
||||||
download_urls=$(echo -e "$download_urls" | grep "\-macos")
|
download_urls=$(echo -e "$download_urls" | grep -e "-macos")
|
||||||
case $gamarch in
|
case $gamarch in
|
||||||
x86_64)
|
x86_64)
|
||||||
archgrep="\-x86_64"
|
archgrep="-x86_64"
|
||||||
;;
|
;;
|
||||||
arm|arm64|aarch64)
|
arm|arm64|aarch64)
|
||||||
archgrep="\-aarch64"
|
archgrep="-arm64\|-aarch64"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo_red "ERROR: this installer currently only supports x86_64 and arm64 MacOS. Looks like you're running on ${gamarch}. Exiting."
|
echo_red "ERROR: this installer currently only supports x86_64 and arm64 MacOS. Looks like you're running on ${gamarch}. Exiting."
|
||||||
@ -257,13 +257,13 @@ case $gamos in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
gam_macos_urls=$(echo -e "$download_urls" | \
|
gam_macos_urls=$(echo -e "$download_urls" | \
|
||||||
grep "$archgrep")
|
grep -e $archgrep)
|
||||||
versionless_urls=$(echo -e "$gam_macos_urls" | \
|
versionless_urls=$(echo -e "$gam_macos_urls" | \
|
||||||
grep "\-macos-")
|
grep -e "-macos-")
|
||||||
if [ "$versionless_urls" == "" ]; then
|
if [ "$versionless_urls" == "" ]; then
|
||||||
# versions after 7.00.38 include MacOS version info
|
# versions after 7.00.38 include MacOS version info
|
||||||
gam_macos_vers=$(echo -e "$gam_macos_urls" | \
|
gam_macos_vers=$(echo -e "$gam_macos_urls" | \
|
||||||
grep --only-matching '\-macos[0-9\.]*' | \
|
grep --only-matching -e '-macos[0-9\.]*' | \
|
||||||
cut -c 7-10)
|
cut -c 7-10)
|
||||||
for gam_mac_ver in $gam_macos_vers; do
|
for gam_mac_ver in $gam_macos_vers; do
|
||||||
if version_gt $currentversion $gam_mac_ver; then
|
if version_gt $currentversion $gam_mac_ver; then
|
||||||
@ -281,13 +281,12 @@ case $gamos in
|
|||||||
case $gamarch in
|
case $gamarch in
|
||||||
x86_64)
|
x86_64)
|
||||||
minimum_version=13
|
minimum_version=13
|
||||||
download_url=$(echo -e "$download_urls" | grep "\-x86_64")
|
|
||||||
;;
|
;;
|
||||||
arm|arm64|aarch64)
|
arm|arm64|aarch64)
|
||||||
download_url=$(echo -e "$download_urls" | grep "\-aarch64")
|
|
||||||
minimum_version=14
|
minimum_version=14
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
download_url=$(echo -e "$download_urls" | grep -e $archgrep)
|
||||||
if version_gt "$osversion" "$minimum_version"; then
|
if version_gt "$osversion" "$minimum_version"; then
|
||||||
echo_green "You are running MacOS ${osversion}, good. Downloading GAM from ${download_url}."
|
echo_green "You are running MacOS ${osversion}, good. Downloading GAM from ${download_url}."
|
||||||
else
|
else
|
||||||
@ -304,7 +303,7 @@ case $gamos in
|
|||||||
gamos="windows"
|
gamos="windows"
|
||||||
echo "You are running Windows"
|
echo "You are running Windows"
|
||||||
download_url=$(echo -e "$download_urls" | \
|
download_url=$(echo -e "$download_urls" | \
|
||||||
grep "\-windows-" | \
|
grep -e "-windows-" | \
|
||||||
grep ".zip")
|
grep ".zip")
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user