p3lim / addon-packager-proxy

Turns GitHub tags into WowInterface uploads through CurseForge and magic!
http://www.wowinterface.com/forums/showthread.php?p=305028
MIT License
12 stars 6 forks source link

Make GitHub optional #4

Open p3lim opened 9 years ago

p3lim commented 9 years ago

Some people don't like having to upload all their projects to GitHub when they've gotten used to an already working environment.

The only current requirement of GitHub is the webhooks that initiate the CurseForge scraping, lets see if we could initiate this without the need for webhooks on GitHub.

Stares intensely at Torhal.

p3lim commented 9 years ago

GitHub can be considered optional as of 0.4.0, but the application will only be semi-automatic. The webhooks are now optional, and you can force-update the app to run by visiting a specific webpage.

Howto:

Supplement parameters for your addon in the following format to the end of the url of your app: /force/<name>/<tag> Replace <name> with the repo value used in the AddonList, <tag> with whatever your version is.

Example:

If the name of your app is horse-potato-7182, and your addon is called AmazingAddon and the version is 2.4.3 you basically visit this page to force an update: https://horse-potato-7182.herokuapp.com/force/AmazingAddon/2.4.3

This will tell the app to instantly run, checking CurseForge for a new version and continue its normal process. This method will not run more than once per call like the automated solution with webhooks.

Fair warning though, if you give it a version lower/older than the current version that is on WowInterface, you might run into issues.

p3lim commented 9 years ago

Made a small powershell script to easily force update an addon: https://gist.github.com/p3lim/3385bc34b82a7f1cd0cc