Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packaging: add macOS app bundle creation script #4946

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nilason
Copy link
Contributor

@nilason nilason commented Jan 13, 2025

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:

./macos/build_grass_app.bash

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:

mkdir -p $HOME/.config/grass
cp macos/files/configure-build.sh.in $HOME/.config/grass/configure-build-arm64.sh
cp macos/files/configure-build.sh.in $HOME/.config/grass/configure-build-x86_64.sh

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.

@nilason nilason added this to the 8.5.0 milestone Jan 13, 2025
@github-actions github-actions bot added the docs label Jan 13, 2025
@nilason nilason added the macOS macOS specific label Jan 13, 2025
@nilason nilason requested a review from cmbarton January 14, 2025 14:01
@github-actions github-actions bot added the CI Continuous integration label Jan 14, 2025
echoix
echoix previously approved these changes Jan 14, 2025
@nilason nilason force-pushed the add_mac_grass_conda branch 2 times, most recently from b073eae to 544d492 Compare January 15, 2025 11:16
- remove macos/pkg directory and contents
- remove macos makefiles
- remove macos/ReadMe.md
@nilason nilason force-pushed the add_mac_grass_conda branch from 544d492 to 1eab6ee Compare January 15, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous integration docs macOS macOS specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants