From 6c7569421b7027ed354a0be21152156be4ad65e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 15 Apr 2024 11:21:11 +0800 Subject: [PATCH] fix --- get_artifacts.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/get_artifacts.sh b/get_artifacts.sh index 757d0cc..4435065 100644 --- a/get_artifacts.sh +++ b/get_artifacts.sh @@ -2,7 +2,6 @@ # 设置仓库信息 repository="NapNeko/NapCat.Build" -run_id="8674568648" arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/x64/) artifact_name="NapCat.linux.$arch" token="$1" @@ -10,10 +9,7 @@ token="$1" # 设置输出目录 output_dir="." -# 获取artifact ID -artifact_id=$(curl -s -X GET -H "Authorization: token $token" "https://api.github.com/repos/$repository/actions/runs/$run_id/artifacts" | jq -r ".artifacts[] | select(.name == \"$artifact_name\") | .id") - -# 下载artifact -curl -s -X GET -H "Authorization: token $token" -L "https://api.github.com/repos/$repository/actions/artifacts/$artifact_id/zip" -o "$output_dir/NapCat.linux.zip" +# 下载release +curl -s -X GET -H "Authorization: token $token" -L "https://github.com/NapNeko/NapCatQQ/releases/download/v1.0.1/NapCat.linux.$arch.zip" -o "$output_dir/NapCat.linux.zip" echo "编译产物已保存到$output_dir/NapCat.linux.zip"