mirror of
https://github.com/NapNeko/NapCat-Docker.git
synced 2025-12-19 06:30:12 +08:00
14 lines
545 B
Bash
14 lines
545 B
Bash
#!/bin/bash
|
|
|
|
ARCH_DOWN=$(echo $ARCH_NC | sed 's/linux\/amd64/x64/' | sed 's/linux\/arm64/arm64/')
|
|
token="$1"
|
|
artifact_name="NapCat.linux.$ARCH_DOWN"
|
|
# 设置输出目录
|
|
output_dir="."
|
|
echo "当前架构$ARCH_DOWN"
|
|
# 下载release
|
|
# https://github.com/NapNeko/NapCatQQ/actions/runs/8965975001/artifacts/1475704304
|
|
curl -s -X GET -H "Authorization: token $token" -L "https://github.com/NapNeko/NapCatQQ/actions/runs/8965975001/artifacts/1475704304" -o "$output_dir/NapCat.linux.zip"
|
|
ls
|
|
echo "编译产物已保存到$output_dir/NapCat.linux.zip"
|