From 2f6c7e31c2e47b8d733542a4e01449536d8ca564 Mon Sep 17 00:00:00 2001 From: juewuy <61367819+juewuy@users.noreply.github.com> Date: Thu, 4 Jan 2024 20:55:50 +0800 Subject: [PATCH] Update update_singbox_core.yaml --- .github/workflows/update_singbox_core.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_singbox_core.yaml b/.github/workflows/update_singbox_core.yaml index 3a2e3f8..4ccd8a9 100644 --- a/.github/workflows/update_singbox_core.yaml +++ b/.github/workflows/update_singbox_core.yaml @@ -24,7 +24,9 @@ jobs: new_name=(386 amd64 armv7 armv8) mkdir tmp for((i=0;i<7;i++));do - wget "https://github.com/${download_project}/releases/download/v${download_version}/sing-box-${download_version}-linux-${archs[i]}.tar.gz" -O - | tar -zxvf -C "./tmp/singbox-linux-${new_name[i]}" + wget "https://github.com/${download_project}/releases/download/v${download_version}/sing-box-${download_version}-linux-${archs[i]}.tar.gz" -O ./tmp/core.tar.gz + tar -zxvf ./tmp/core.tar.gz + mv -f ./tmp/sing-box ./tmp/singbox-linux-${new_name[i]} chmod +x ./tmp/singbox-linux-${new_name[i]} if [ "${archs[i]}" != "armv5" ];then if [[ ${archs[i]} = mips* ]];then