atlanticaccent / starsector-mod-manager-rust

A mod manager for Starsector, a space fleet-battle and economics simulator. This time written in Rust.
https://atlanticaccent.github.io/starsector-mod-manager-rust/
MIT License
33 stars 1 forks source link

Allow app to run on older macOS major versions #98

Closed atlanticaccent closed 2 years ago

atlanticaccent commented 2 years ago

macOS 10.15(?) disabled running 32 bit applications, because Apple, meaning some users have intentionally not updated beyond 10.14. Other users may not have updated out of some other preference, or simply because their machines are unsupported on later versions.

Utilising cargo-bundle properties and the MACOS_DEPLOYMENT_TARGET env var, we can target a specific macOS version instead of the default. The env var is more important, as it influences not only the main binary but how dependencies are compiled - and some dependencies using C/C++ libs will only compile on certain macOS versions and beyond due to library dependencies of their own.

Currently, the lowest tested and successful version is 10.10. The lowest possible, 10.7, causes unrar to fail to build to some C++ lib not being present in the standard lib.