Build cross-compilation fixes

Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
This commit is contained in:
Arthur Sengileyev
2022-12-02 12:43:57 +02:00
parent 51deb324a3
commit 98a1b551fe
3 changed files with 10 additions and 6 deletions

View File

@ -10,7 +10,8 @@ SOURCES=${@:3} ## directories to find markdown files
# invoked in a cross-compilation environment, so even if PLATFORM=windows
# we need an actual executable that we can invoke).
if [[ -z "$PODMAN" ]]; then
case $(env -i HOME=$HOME PATH=$PATH go env GOOS) in
DETECTED_OS=$(env -i HOME="$HOME" PATH="$PATH" go env GOOS)
case $DETECTED_OS in
windows)
PODMAN=bin/windows/podman.exe ;;
darwin)