mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-29 13:06:56 -06:00
* Honor CARGO_BUILD_TARGET in FreeBSD packaging for aarch64 release builds package.sh took the arch from uname -m and read binaries from target/release, so a cross-built aarch64 target would be packaged as the host arch from the wrong directory. Pass --target, read target/<triple>/release, and name the archive from the target triple when CARGO_BUILD_TARGET is set. Skip the --version smoke run for cross builds, since the binary cannot run on the host. * Resolve host-tuple and reject unsupported targets in FreeBSD packaging Resolve CARGO_BUILD_TARGET=host-tuple to the real host triple before it is used in the target directory path. Accept only x86_64-unknown-freebsd and aarch64-unknown-freebsd when it is set, and fail with an error for anything else instead of mapping unknown targets to x86_64. * Validate staged FreeBSD binaries before packaging Check that deckcraft and deckcraft-cli are 64-bit little-endian FreeBSD ELF files for the selected arch before the archive is created, so placeholder, wrong-arch or non-FreeBSD binaries fail instead of being packaged. Applies to --skip-build and full builds.