UltraMachine / rust-sc2

SC2 API for Rust
MIT License
38 stars 19 forks source link

MacOS m1/m2 support #87

Closed plichard closed 11 months ago

plichard commented 1 year ago

This PR adds support for Apple Silicon-based MacOS. I have no idea whether directories/filenames change on the x86_64 version (and have no way of testing it) so I constrained it to aarch64 only.

SC2PATHshould by default be set to /Applications/Starcraft II, for example with

fn main() -> SC2Result<()> {
    #[cfg(target_os = "macos")]
    std::env::set_var("SC2PATH", "/Applications/Starcraft II");
    ...