diff --git a/scripts/pkg-gba b/scripts/pkg-gba index 0c49a025..d9344122 100755 --- a/scripts/pkg-gba +++ b/scripts/pkg-gba @@ -2,7 +2,10 @@ set -e -BIN=./dist/$(cat .current_build)/bin/ +OS=$(uname | tr [:upper:] [:lower:]) +HOST_ENV=${OS}-$(uname -m) + +BIN=./dist/${HOST_ENV}-$(cat .current_build)/bin/ PATH=$BIN:${DEVKITPRO}/tools/bin/:${DEVKITARM}/bin/:$PATH NOSTALGIA_BIN=build/gba-*/src/nostalgia/player/nostalgia.bin NOSTALGIA_MEDIA=nostalgia_media.oxfs