From fed0e4d55b0eb38b3d4e0e3043f725a9649172c1 Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Fri, 3 May 2019 16:21:30 +0800 Subject: [PATCH] fuck curseforge api Former-commit-id: 98a2c3a417aa931a38ed208a576cb008571eb45e [formerly ad0c0a8f1df71b8791fe6ec01437d8e9f1faafa9] Former-commit-id: 75985e9f3eb891b9eb5045be4759573814905317 --- depoly.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/depoly.sh b/depoly.sh index 7ce9161a1..f39e6ec09 100644 --- a/depoly.sh +++ b/depoly.sh @@ -14,7 +14,7 @@ fi count=0 # 下载JSON库 -wget -O "jq" "https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64" +# wget -O "jq" "https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64" # 设置运行权限 chmod +x "./jq" @@ -22,10 +22,10 @@ chmod +x "./jq" # JAR为编译后jar文件名称 read JAR < $filename xToken=$1 -curl -X POST -H "X-Api-Token: $xToken" -F 'metadata={"changelog":"Auto upload by TravisCI, see update details on spigotmc.org","gameVersions":[55023,64806],"releaseType":"release"}' -F "file=@./push/$JAR" -s "https://dev.bukkit.org/api/projects/320536/upload-file" > fileid.json +curl -X POST -H "X-Api-Token: $xToken" -F 'metadata={"changelog":"Auto upload by TravisCI, see update details on spigotmc.org","gameVersions":[7330,7105],"releaseType":"alpha"}' -F "file=@./push/$JAR" -s "https://dev.bukkit.org/api/projects/320536/upload-file" > fileid.json cat fileid.json -jq '.id' > fileid.txt -cat fileid.txt +# jq '.id' > fileid.txt +# cat fileid.txt echo -e "\nTotal $count linces read and deployed." #退出脚本,且退出状态码为0