Skip to content

Commit

Permalink
wonder if http1.1 works
Browse files Browse the repository at this point in the history
  • Loading branch information
Vazkii committed Jun 12, 2023
1 parent b44e9b0 commit dce4d18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/upload_releases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ EOF
--arg mcver "${MC_VERSION}" \
--arg changelog "${GH_RELEASE_PAGE}" \
'.name=$ARGS.named.name | .version_number=$ARGS.named.name | .game_versions=[$ARGS.named.mcver] | .changelog=$ARGS.named.changelog')
curl 'https://api.modrinth.com/v2/version' \
curl --http1.1 'https://api.modrinth.com/v2/version' \
-H "Authorization: $MODRINTH_TOKEN" \
-F "data=$MODRINTH_FORGE_SPEC" \
-F "jar=@${FORGE_JAR}" # TODO modrinth doesn't allow asc files. Remember to readd "signature" to the spec when reenabling this. \ -F "signature=@${FORGE_JAR}.asc"
Expand All @@ -71,7 +71,7 @@ function release_curseforge() {
# Once with type ID 1 (unused?), once with its major-version-specific type ID, and once with the type ID for "Addons" 615
# We want the second one. Just dirtily pluck it out based on this.
local CURSEFORGE_GAME_VERSION
CURSEFORGE_GAME_VERSION=$(curl https://minecraft.curseforge.com/api/game/versions \
CURSEFORGE_GAME_VERSION=$(curl --http1.1 https://minecraft.curseforge.com/api/game/versions \
-H 'Accept: application/json' \
-H "X-Api-Token: ${CURSEFORGE_TOKEN}" | \
jq --arg mcver "${MC_VERSION}" \
Expand Down

0 comments on commit dce4d18

Please sign in to comment.