enemize-rs/prepare.sh
Lyle Mantooth 87b0476b7e
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.
2022-06-04 09:36:08 -04:00

9 lines
303 B
Bash

#!/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