mirror of https://git.sr.ht/~rabbits/nasu
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
408 B
24 lines
408 B
#!/bin/sh -e |
|
|
|
echo "Cleaning.." |
|
rm -rf bin |
|
mkdir bin |
|
|
|
echo "Assembling.." |
|
uxnasm src/main.tal bin/nasu.rom |
|
|
|
echo "Installing.." |
|
if [ -d "$HOME/roms" ] && [ -e ./bin/nasu.rom ] |
|
then |
|
cp ./bin/nasu.rom $HOME/roms |
|
echo "Installed in $HOME/roms" |
|
fi |
|
|
|
if [ "${1}" = '--push' ]; |
|
then |
|
echo "Pushing.." |
|
~/Applications/butler push bin/nasu.rom hundredrabbits/nasu:uxn |
|
fi |
|
|
|
echo "Running.." |
|
uxnemu bin/nasu.rom
|
|
|