2017-05-16 01:35:32 -05:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
2022-11-30 01:47:33 -06:00
|
|
|
set -u
|
2017-05-16 01:35:32 -05:00
|
|
|
|
2020-08-14 20:54:16 -05:00
|
|
|
OS=$(uname | tr [:upper:] [:lower:])
|
|
|
|
HOST_ENV=${OS}-$(uname -m)
|
|
|
|
|
|
|
|
BIN=./dist/${HOST_ENV}-$(cat .current_build)/bin/
|
2022-11-30 01:47:33 -06:00
|
|
|
NOSTALGIA_BIN=build/$(hostname)/gba-*/src/nostalgia/player/nostalgia.bin
|
2020-06-14 19:01:07 -05:00
|
|
|
NOSTALGIA_PROJECT=$1
|
2019-07-21 23:54:30 -05:00
|
|
|
NOSTALGIA_GBA=nostalgia.gba
|
2017-05-16 01:35:32 -05:00
|
|
|
|
2022-11-30 01:47:33 -06:00
|
|
|
cp $NOSTALGIA_BIN $NOSTALGIA_GBA
|
|
|
|
${BIN}/nost-pack -src $NOSTALGIA_PROJECT -rom-bin $NOSTALGIA_GBA
|
2019-07-21 23:54:30 -05:00
|
|
|
gbafix $NOSTALGIA_GBA
|