mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-14 22:35:26 +00:00
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.