2021-01-12 21:45:57 -05:00
|
|
|
install:
|
2021-03-09 19:34:12 -05:00
|
|
|
cp -r ATMe/ $$WOW_ADDON_DIR
|
2021-03-09 19:51:34 -05:00
|
|
|
cp -r ATAutoReactivateGoliath/ $$WOW_ADDON_DIR
|
2021-01-12 21:45:57 -05:00
|
|
|
|
|
|
|
update:
|
2021-03-09 19:34:12 -05:00
|
|
|
cp -r $$WOW_ADDON_DIR/ATMe .
|
2021-03-09 19:51:34 -05:00
|
|
|
cp -r $$WOW_ADDON_DIR/ATAutoReactivateGoliath .
|
2021-03-09 21:47:04 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ATAutoReactivateGoliath.zip
|
|
|
|
|
|
|
|
archive: clean
|
|
|
|
zip -r ATAutoReactivateGoliath ATAutoReactivateGoliath
|
|
|
|
|
|
|
|
upload: archive
|
|
|
|
test $$WOW_GAME_VERSION
|
|
|
|
curl -H "X-Api-Token: $$CURSEFORGE_TOKEN" \
|
|
|
|
-F metadata='{changelog: "Initial upload", gameVersions: [$$WOW_GAME_VERSION], releaseType: "release"}' \
|
|
|
|
-F file=@ATAutoReactivateGoliath.zip \
|
|
|
|
https://wow.curseforge.com/api/projects/$$CURSEFORGE_PROJECT_ID/upload-file
|
|
|
|
|
|
|
|
version:
|
|
|
|
curl -H "X-Api-Token: $$CURSEFORGE_TOKEN" \
|
|
|
|
https://wow.curseforge.com/api/game/versions | \
|
|
|
|
jq ".[-1] | .id"
|