Add linux/max shell scripts because makefile is cumbersome

+ update readme
This commit is contained in:
Robert Peralta
2020-08-18 17:51:44 -04:00
parent 0e901406f2
commit 16ddb9e9b1
4 changed files with 42 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ This project is home to the series of ASM mods that are applied to Melee in orde
## Build Instructions
1. In order to build this project you will need to [download](https://github.com/JLaferri/gecko/releases) the `gecko` program and add it to your PATH env variable.
2. On windows you can then simply run the `build.bat` file to build all the different configurations. On mac/linux you can run the makefile.
2. On windows you can then simply run the `build.bat` file to build all the different configurations. On mac/linux you can run the makefile or run `build.sh`.
## Output
### Console

4
build-netplay.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
echo Building netplay.json...
gecko build -c netplay.json -defsym "STG_EXIIndex=1"
echo ""

4
build-playback.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
echo Building playback.json...
gecko build -c playback.json -defsym "STG_EXIIndex=1"
echo ""

33
build.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/bin/bash
source ./build-netplay.sh
source ./build-playback.sh
echo Building console_core.json...
gecko build -c console_core.json -defsym "STG_EXIIndex=1" -o "Output/Console/g_core.bin"
echo ""
echo Building console_core.json for Port A...
gecko build -c console_core.json -defsym "STG_EXIIndex=0" -o "Output/Console/g_core_porta.bin"
echo ""
list=(
"console_UCF.json"
"console_UCF_stealth.json"
"console_ControllerFixPlayerToggles.json"
"console_mods_stealth.json"
"console_mods_tournament.json"
"console_mods_friendlies.json"
"console_PAL.json"
"console_frozen.json"
"console_lag_pd.json"
"console_lag_pdvb.json"
)
for file in "${list[@]}"
do
echo "Building $file..."
gecko build -c "$file"
echo ""
done