Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.67 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.67 KB

In this document, SECRET means a key known by people with access to the Heroku application.

To update the status page with the new release information, you need to include the following step in your nightly build process, at the end, when the executable is ready to be downloaded:

curl -X POST http://status.cgeo.org/api/update/nightly --data "key=SECRET" --data "version_code=YYYYMMDD" --data "version_name=YYYY.MM.DD-NB-SHA1"

Same for release candidates, using

curl -X POST http://status.cgeo.org/api/update/rc --data "key=SECRET" --data "version_code=YYYYMMDD" --data "version_name=YYYY.MM.DD-RC-SHA1"

And, for a plain release on Market, once it has appeared on Google Play:

curl -X POST http://status.cgeo.org/api/update/release --data "key=SECRET" --data "version_code=YYYYMMDD" --data "version_name=YYYY.MM.DD"

Once a release has been done, you can remove the release candidate information by using:

curl -X DELETE "http://status.cgeo.org/api/update/rc?key=SECRET"

You can also update the message sent to up-to-date clients with:

curl -X POST http://status.cgeo.org/api/update/message --data "key=SECRET" --data "message=This is the message" --data "icon=attribute_danger" --data "message_id=emergency_message" --data "url=http://www.cgeo.org/"

Only message is mandatory. icon must be an existing attribute in the application, message_id may override message if the resource can be found in the application (it would be localizable), url would make the message clickable.

Similarly, the message is removed using:

curl -X DELETE "http://status.cgeo.org/api/update/message?key=SECRET"