fuck curseforge api

Former-commit-id: 0217caaf68b0fa7c2f14e012a0691df4e5e6ead9 [formerly 3957a08d96c4348de451748035efc43acf1e0f1a]
Former-commit-id: 5a3d3a856c9a39e4712bf178310e7a8378c38837
This commit is contained in:
Ghost_chu committed 2019-05-03 15:31:15 +08:00
1 parent 6524dc3240
commit 5260a50671
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ chmod +x "./jq"
read JAR < $filename
# 将变量count的值加1
xToken=$1
xUJson='{"changelog":"Auto upload by TravisCI, see update details on spigotmc.org","changelogType":["text","markdown"],"gameVersions":[7330,7132,7081],"releaseType":"release"}'
xUJson='{"changelog":"Auto upload by TravisCI, see update details on spigotmc.org","changelogType":text,"gameVersions":[7330,7132,7081],"releaseType":"release"}'
curl -X POST -H "X-Api-Token: $xToken" -F "metadata=$xUJson" -F "file=@./push/$JAR" -s "https://dev.bukkit.org/api/projects/320536/upload-file" > fileid.json
cat fileid.json
jq '.id' > fileid.txt