Distribute releases from private Terrium repo by downloading them from GitHub and serving them itself, updating website download links and announcing on Discord
This repository has been archived on 2022-10-14. You can view files and clone it, but cannot push or open issues/pull-requests.
 
Go to file
Lamp 95f5bea88b
github requires user agent header
2019-09-05 14:25:39 -07:00
.gitignore add pm2 ecosystem config 2019-02-02 20:23:39 -08:00
README.md Create README.md 2019-02-05 20:35:45 -08:00
config.js https 2019-02-02 20:47:40 -08:00
ecosystem.config.js add pm2 ecosystem config 2019-02-02 20:23:39 -08:00
index.js github requires user agent header 2019-09-05 14:25:39 -07:00
package-lock.json there was no body parser... 2019-09-03 12:10:41 -07:00
package.json there was no body parser... 2019-09-03 12:10:41 -07:00

README.md

This thing publicly distributes terrium releases from the private github repository. On a release, github sends a request to this server's webhook (at /update), the assets are downloaded to the public directory via an authenticated github user api-terrium-net, a request is sent to the website's webhook (/game-release.php) to update the version number and download links on the website specified by the file game-release.json, and an announcement is posted in discord with the release method and download links. Platforms are determined by the case-insensitive inclusion of "mac" or "osx" for the mac build, "win" for the windows build, and "linux" for the linux build, in the file names.

In case of failure, assets can be manually uploaded to the public directory (or you can upload your builds to dropbox), and game-release.json on the bluehost server can be updated manually.

Currently hosted on ts.terrium.net under user 'terrium', passphrase is files messrs pools soccer.