From f8f222e740dcb1607462f31ad17fef6db520e641 Mon Sep 17 00:00:00 2001 From: zhangchenhao Date: Fri, 9 May 2025 16:33:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8B=E8=BD=BD=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/allinssl.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/script/allinssl.sh b/script/allinssl.sh index bfe69fd..4d8f25c 100644 --- a/script/allinssl.sh +++ b/script/allinssl.sh @@ -50,7 +50,16 @@ if [ $# -eq 0 ]; then fi function update_allinssl() { - local url="https://download.allinssl.com/bin/allinssl.tar.gz" + ARCH=$(uname -m) + if [[ "$ARCH" == "x86_64" ]]; then + local url="https://download.allinssl.com/bin/allinssl-Linux-x86_64.tar.gz" + elif [[ "$ARCH" == "aarch64" ]]; then + local url="https://download.allinssl.com/bin/allinssl-Linux-aarch64.tar.gz" + else + echo "不支持$ARCH" + exit 1 + fi +# local url="https://download.allinssl.com/bin/allinssl.tar.gz" local target_dir="${WORK_DIR}" local temp_file=$(mktemp) local original_filename temp_file