jaemk / self_update

Self updates for rust executables
MIT License
796 stars 69 forks source link

Add example/test support for Apple silicon #132

Open brianheineman opened 5 months ago

brianheineman commented 5 months ago

Please consider adding a aarch64-apple-darwin release archive (e.g. self_update-v9.9.10-aarch64-apple-darwin.tar.gz) to facilitate testing on Apple silicon (M1, M2, M3, etc) based systems. When running the suggested test command:

cargo run --example github --features "archive-tar archive-zip compression-flate2 compression-zip-deflate"

The following error occurs due to the missing target release archive:

Checking target architecture... aarch64-apple-darwin
Checking current version... v0.40.0
Checking latest released version... v9.9.10
New release found! v0.40.0 --> v9.9.10
New release is *NOT* compatible
[ERROR] ReleaseError: No asset found for target: `aarch64-apple-darwin`