mirror of
https://github.com/NapNeko/NapCat-Docker.git
synced 2025-12-19 06:30:12 +08:00
fix
This commit is contained in:
parent
465e467212
commit
ebd0cdcdbf
@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
[ "$ARCH_NC" = "linux/amd64" ] && ARCH_DOWN="x64" || [ "$ARCH_NC" = "linux/arm64" ] && ARCH_DOWN="arm64"
|
||||
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
|
||||
curl -s -X GET -H "Authorization: token $token" -L "https://github.com/NapNeko/NapCatQQ/releases/download/v1.0.2/$artifact_name.zip" -o "$output_dir/NapCat.linux.zip"
|
||||
ls
|
||||
|
||||
Loading…
Reference in New Issue
Block a user