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 or pull requests.
Go to file
2019-09-03 11:54:33 -07:00
.gitignore add pm2 ecosystem config 2019-02-02 20:23:39 -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 serve-index doesn't passthrough post requests 2019-09-03 11:54:33 -07:00
package-lock.json add serve-index 2019-02-02 20:32:53 -08:00
package.json add serve-index 2019-02-02 20:32:53 -08:00
README.md Create README.md 2019-02-05 20:35:45 -08:00

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.