In this PR I tried to improve the reliability of autodetecting / loading the CAPS library (especially on macOS), along with a few other minor improvements.
Added support for having several values (comma-separated) in SPSCAPS_LIB_NAME.
It will try each one in order (I've added more detailed logging too), and I have changed the default values of the variable in Linux/macOS to take advantage of this.
This is similar to what other tools are doing with CAPSlib, and it should better autodetect the differentbuilds that are floating around.
On macOS, it means users should copy CAPSImage.framework or CAPSImg.framework to /Library/Frameworks (admin access needed) and HxC will use either of them. It should address issues reported here or here.
Slightly improved the Mac bundle creation script. Adding CFBundleIdentifier to the plist should also fix Spotlight not finding the app.
Some other minor tweaks to .gitignore (it didn't cover all of fltk when building on Mac) and README.
Just built & tested on macOS Ventura 13.5. I didn't test the Windows logging addition, hopefully it works !
Salut Jean-François,
In this PR I tried to improve the reliability of autodetecting / loading the CAPS library (especially on macOS), along with a few other minor improvements.
SPSCAPS_LIB_NAME
. It will try each one in order (I've added more detailed logging too), and I have changed the default values of the variable in Linux/macOS to take advantage of this. This is similar to what other tools are doing with CAPSlib, and it should better autodetect the different builds that are floating around. On macOS, it means users should copyCAPSImage.framework
orCAPSImg.framework
to/Library/Frameworks
(admin access needed) and HxC will use either of them. It should address issues reported here or here.CFBundleIdentifier
to the plist should also fix Spotlight not finding the app..gitignore
(it didn't cover all of fltk when building on Mac) and README.Just built & tested on macOS Ventura 13.5. I didn't test the Windows logging addition, hopefully it works !