nostalgia/scripts/pkg-gba

17 lines
395 B
Bash
Executable File

#! /usr/bin/env bash
set -e
set -u
OS=$(uname | tr [:upper:] [:lower:])
HOST_ENV=${OS}-$(uname -m)
BIN=./dist/${HOST_ENV}-$(cat .current_build)/bin/
NOSTALGIA_BIN=build/$(hostname)/gba-*/src/nostalgia/player/nostalgia.bin
NOSTALGIA_PROJECT=$1
NOSTALGIA_GBA=nostalgia.gba
cp $NOSTALGIA_BIN $NOSTALGIA_GBA
${BIN}/nost-pack -src $NOSTALGIA_PROJECT -rom-bin $NOSTALGIA_GBA
gbafix $NOSTALGIA_GBA