mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-30 13:16:56 -06:00
* Honor CARGO_BUILD_TARGET in FreeBSD packaging for aarch64 release builds The shared release workflow cross-compiles FreeBSD aarch64 in an x86_64 VM and sets CARGO_BUILD_TARGET. package.sh ignored it: it built for the host, read binaries from target/release, took the arch from uname -m (amd64 in the VM), and ran the cross-built designcraft-cli --version on the host. Take the arch from the target, build and read binaries from the target's directory, and skip the host-side --version run when cross-compiling. Unset CARGO_BUILD_TARGET keeps the old behavior. * Pick FreeBSD archive arch from CARGO_BUILD_TARGET with a release_arch helper Follow soundcraft's pattern: native builds use uname -m, aarch64-unknown-freebsd and x86_64-unknown-freebsd map to their arch, and any other target exits 2. The --version check runs only when the archive arch matches the host arch.