You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since WoW version 10.*, I have had to set the correct game version manually on CurseForge site, because it's been getting pushed as "1.0.0". (See below inserted screen snip.)
I'm familiar with JSON, and not at all familiar with jq; but I believe the jq command in the upload_curseforge() function may need to be updated?
With some experimenting, I've been able to extract using jq -e ... with .apiVersion instead of .name:
command: jq -e --arg v "100005" --argjson t "517" 'map(select(.gameVersionTypeID == $t and .apiVersion == $v))' < file.txt
Since WoW version 10.*, I have had to set the correct game version manually on CurseForge site, because it's been getting pushed as "1.0.0". (See below inserted screen snip.)
I'm familiar with JSON, and not at all familiar with jq; but I believe the jq command in the upload_curseforge() function may need to be updated?
With some experimenting, I've been able to extract using jq -e ... with .apiVersion instead of .name:
command:
jq -e --arg v "100005" --argjson t "517" 'map(select(.gameVersionTypeID == $t and .apiVersion == $v))' < file.txt
output:
[
{
"id": 9711,
"gameVersionTypeID": 517,
"name": "10.0.5",
"slug": "10-0-5",
"apiVersion": "100005"
}
]
file.txt is the output from
curl -s -H "x-api-token: <my-token>" https://www.curseforge.com/api/game/versions
The text was updated successfully, but these errors were encountered: