A RuneTek3 client (377) that is deobfuscated, converted to Kotlin, and includes QoL improvements.
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: package collision

+31 -1
+31 -1
.gitlab-ci.yml
··· 118 118 119 119 publish: 120 120 stage: publish 121 - image: curlimages/curl:latest 121 + image: alpine:latest 122 122 tags: 123 123 - docker 124 124 parallel: ··· 134 134 artifacts: true 135 135 rules: 136 136 - if: $CI_COMMIT_BRANCH == "main" 137 + before_script: 138 + - apk add --no-cache curl jq 139 + # GitLab generic packages append on duplicate uploads (every push leaves an 140 + # extra copy in the registry). Workflow: find any existing files in 141 + # ${PACKAGE_NAME}/latest matching this region's zip name, DELETE them, then 142 + # upload fresh. Each parallel job only touches its own ZIP_NAME so the two 143 + # regions don't race. 137 144 script: 138 145 - export ZIP_NAME="hla-${REGION}-client.zip" 139 146 - echo "Publishing ${ZIP_NAME} @ ${CI_COMMIT_SHORT_SHA}" 147 + 148 + # Find package id for hla-client/latest (empty string if first publish) 149 + - | 150 + PACKAGE_ID=$(curl --silent --fail --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \ 151 + "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages?package_name=${PACKAGE_NAME}&package_version=latest" \ 152 + | jq -r '.[0].id // empty') 153 + echo "Existing package id: '${PACKAGE_ID:-<none>}'" 154 + 155 + # Delete prior copies of THIS zip name only (preserves other regions' zips) 156 + - | 157 + if [ -n "${PACKAGE_ID}" ]; then 158 + FILE_IDS=$(curl --silent --fail --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \ 159 + "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/${PACKAGE_ID}/package_files" \ 160 + | jq -r --arg name "${ZIP_NAME}" '.[] | select(.file_name == $name) | .id') 161 + for fid in ${FILE_IDS}; do 162 + echo "Deleting stale file id ${fid} (${ZIP_NAME})" 163 + curl --silent --fail --request DELETE \ 164 + --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \ 165 + "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/${PACKAGE_ID}/package_files/${fid}" 166 + done 167 + fi 168 + 169 + # Upload the new zip 140 170 - | 141 171 curl --fail --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \ 142 172 --upload-file "${ZIP_NAME}" \