View Single Post
01/20/21, 07:35 AM   #16
Keldor
 
Keldor's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2015
Posts: 101
Hello!

I think I found a bug in the API. Via Jenkins I update my AddOns with the script posted below.

When I check the project page of the AddOn, no supported ESO version is shown. If I edit the AddOn there is also no check mark at the supported versions set.

The variable COMPATIBLE_ID currently has the value "6.2.5". If I don't give curl a compatible value, it doesn't set the default either.

Code:
#!/bin/bash

ESOUI_ENDPOINT="https://api.esoui.com/addons/update"
ESOUI_COMPATIBLE_LIST="https://api.esoui.com/addons/compatible.json"
ESOUI_API_TOKEN="xx4541"
ESOUI_ADDON_ID="12345"

COMPATIBLE_LIST=$(curl --fail -s -L -H "x-api-token: ${ESOUI_API_TOKEN}" "${ESOUI_COMPATIBLE_LIST}")
COMPATIBLE_ID=$(echo "${COMPATIBLE_LIST}" | jq '.[0].id')

curl --fail -s -L -H "x-api-token: ${ESOUI_API_TOKEN}" \
  -F "id=${ESOUI_ADDON_ID}" \
  -F "version=${VERSION_STR}" \
  -F "compatible=${COMPATIBLE_ID}" \
  -F "changelog=${CHANGELOG}" \
  -F "updatefile=@${WORKSPACE}/addon.zip" ${ESOUI_ENDPOINT}
Can anyone confirm the behavior?

Last edited by Keldor : 01/22/21 at 02:40 AM.
  Reply With Quote