steamguard-cli icon indicating copy to clipboard operation
steamguard-cli copied to clipboard

Self-build for macOS (x86/aarch64)

Open eric1932 opened this issue 3 years ago • 6 comments

Please consider including macOS rebuilt in releases.

What I did

rustup target add x86_64-apple-darwin
cargo build --release
cargo build --release --target=x86_64-apple-darwin
# create universal binary
cd targets; lipo x86_64-apple-darwin/release/steamguard-cli release/steamguard-cli \
  -create -output ./steamguard-cli

prebuilt binary (commit hash 8c4535): ~steamguard-cli.zip~ USE AT YOUR OWN RISK

eric1932 avatar Oct 04 '22 02:10 eric1932

I'm gonna remove your download here because it presents a risk to end users. But yeah, maybe I should include a darwin build

dyc3 avatar Oct 06 '22 03:10 dyc3

thx for the update

eric1932 avatar Oct 06 '22 08:10 eric1932

aarch64-apple-darwin would also be useful :)

tayler-king avatar Oct 04 '23 10:10 tayler-king

I took a look at adding this to my release script, and it's not exactly as straightforward as I'd hoped. For whatever reason, ring (transient dependency) really doesn't like getting cross compiled for mac on linux.

I found this though: https://wapl.es/rust/2019/02/17/rust-cross-compile-linux-to-macos.html

dyc3 avatar Oct 08 '23 16:10 dyc3