17 lines
395 B
Bash
Executable File
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/$(uname -n)/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
|