packaging: add macOS app bundle creation script #4946
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This integrates code from https://github.com/nilason/grass-conda which has be used for a couple of years to create macOS binary distribution packages.
It makes it simple to build an app bundle on a machine with Apple's Command Line Tools and/or Xcode installed:
Because it downloads and installs the conda environment each time it is not ideal as a developer environment/solution, but for occasional builds and, most importantly, the possibility to create distributions with CI, it is excellent.
This update doesn't include CI workflow. Although I'm working on a workflow (which so far creates an app packaged in a dmg file), but additional work on notarisation and server uploading remains.
@cmbarton, others: Please note the addition of use configure file(s) in
$HOME/.config/grass
:which simplifies the process to only running the script (without arguments).
This code originates from ideas and bits from https://grasswiki.osgeo.org/wiki/Compiling_on_macOS_using_Anaconda and https://github.com/mcflugen/grass-conda-build.