[nostalgia] Cleanup build files

This commit is contained in:
2020-06-20 05:27:03 -05:00
parent dbf532df1c
commit d664979868
3 changed files with 6 additions and 3 deletions

21
scripts/pkg-gba Executable file
View File

@ -0,0 +1,21 @@
#! /usr/bin/env bash
set -e
BIN=./dist/$(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
NOSTALGIA_PROJECT=$1
NOSTALGIA_GBA=nostalgia.gba
MEDIA_HEADER=media_header.txt
echo NOSTALGIA_MEDIA_HEADER_________ > $MEDIA_HEADER
nost-pack -src $NOSTALGIA_PROJECT -dst $NOSTALGIA_MEDIA
padbin 32 $NOSTALGIA_BIN
ls -lh $NOSTALGIA_BIN
cat $NOSTALGIA_BIN $MEDIA_HEADER $NOSTALGIA_MEDIA > $NOSTALGIA_GBA
rm -f $MEDIA_HEADER #$NOSTALGIA_MEDIA
gbafix $NOSTALGIA_GBA