frostoven/Cosmosis

Create build scripts

aggregate1166877 opened this issue · 1 comments

Details:
We need build scripts. The purpose of these is to easily publish distributables to the releases page.

The current steps are detailed at the bottom of the CONTRIBUTING.md page, but note that the instructions are currently windows-only; we likely need to include other platforms.

Once the build scripts are working, CONTRIBUTING.md needs to be updated as part of this task.

Optional extra credits:

  • Make scripts CI/CD friendly.
  • Allow building for other platforms (i.e. allow building for a platform you're not actually running the script from).

All platforms will use .sh files for this. The interpreter used will be POSIX shell (not bash).

To facilitate .sh on Windows, I'll be targeting Cygwin and Git For Windows. They both use mintty, but in very different ways. WSL won't be tested and is unsupported for now, though some other kind soul is free to contribute in that regard. Powershell will not be used because it's twice the work + twice the testing, and maintaining it in future may introduce bugs not present on other platforms.

This will also target Linux (Ubuntu, specifically), which will be supported going forward.

Mac should work, but currently unsupported because I don't own (and refuse to buy) a Mac. I'm happy to accept a donated Mac for testing purposes, though.

Other platforms (including Mac and the BSDs) will have a generic script called create_generic.sh for users to build on their own systems.

ARM should work but isn't officially supported. Android isn't currently supported.