GnuCash can be built to run more or less natively on OSX -- meaning without X11. Better yet, the build is almost automatic.
Please see http://wiki.gnucash.org/wiki/MacOSX/Quartz for instructions.
The Github Mac runners are Apple Silicon so this must be done on an Apple Silicon Mac.
- Set up gtk-osx on your system.
- Clone this repository.
- Create a build directory and change its ownership to you:
sudo mkdir -p /Users/runner/gnucash/inst sudo chown -R <your userid> /Users/runner
- Change the file versions in dependencies.txt to match the versions in the build you just made. Change GNC_VERSION in depstarball.sh to match the current or next release as appropriate. If that's not changing consider adding a suffix (e.g. 5.13-1) so that the new and old can coexist on sourceforge.
- Build the dependencies:
cd /Users/runner jhbuild --prefix /Users/runner/gnucash bootstrap-gtk-osx jhbuild --prefix /Users/runner/gnucash --moduleset=/Path/to/gnucash-on-osx/modules/gnucash.modules build meta-gnucash-dependencies - Run
depstarball.sh. It uses absolute paths so it can be run from any directory. If GnuCash compiles and all the tests pass, proceed. If not then diagnose the problem, adjust dependencies.txt as needed, and try again.
- Upload the result to the Dependencies folder in GnuCash's Sourceforge project.
- Change the dependencies file URI in
gnucash-git/.github/workflows/macos-tests.yamlto match the file you just made, commit the result, and push it. - Commit and push any changes you made to
dependencies.txtanddepstarball.sh.