quexten / goldwarden

A feature-packed Bitwarden compatible desktop client
MIT License
601 stars 19 forks source link

Bad CPU type #221

Closed Imzxhir closed 1 month ago

Imzxhir commented 1 month ago

Description: I tried to run the x86_64 version of goldwarden on macOS, but I kept getting an error message that said exec: Failed to execute process '/usr/local/bin/goldwarden': Bad CPU type in executable., even though I have an intel iMac.

quexten commented 1 month ago

goldwarden_macos_x86_64: Mach-O 64-bit arm64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE|HAS_TLV_DESCRIPTORS> Seems like the CI pipeline somehow ran on arm64.

augustozanellato commented 1 month ago

goldwarden_macos_x86_64: Mach-O 64-bit arm64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE|HAS_TLV_DESCRIPTORS> Seems like the CI pipeline somehow ran on arm64.

It appears that macos-latest switched to being arm64 by default. Go should probably be configured to crossbuild to amd64.

quexten commented 1 month ago

Updated this to macos-13 in the pipeline. Switching to cross-compliation will likely lead to disabling fido2 support. I tried enabling cross-compilation of the C lib with the zig compiler too, but failed to achieve this. So until mac x86 runners are EOL, I'd prefer to keep the builds on them.

quexten commented 1 month ago

Should be fixed on 0.3.3