Make it easy to generate necessary artifacts to run enemize-rs.

Maybe these files could be committed? It's not like they'll change very
often. But maybe there's copyrighted material in them I haven't noticed.
This commit is contained in:
Lyle Mantooth 2022-06-04 09:36:08 -04:00
parent 8901e0e8b0
commit 87b0476b7e
Signed by: IslandUsurper
GPG key ID: 6DB52EAE123A5789
2 changed files with 11 additions and 2 deletions

5
.gitignore vendored
View file

@ -1,3 +1,4 @@
/target
exported_symbols.txt
patchData.json
asar_symbols.txt
base_patch.json
enemizer_base_patch.json

8
prepare.sh Normal file
View file

@ -0,0 +1,8 @@
#!/bin/sh
if [[ ! -s base_patch.json || ! -s asar_symbols.txt ]]; then
cargo run -p bin_comp -- assembly/src/main.asm base_patch.json asar_symbols.txt
fi
if [[ ! -s enemizer_base_patch.json ]]; then
cargo run -p base_patch_generator -- "$1" base_patch.json asar_symbols.txt enemizer_base_patch.json
fi