enemize-rs/prepare.sh

10 lines
367 B
Bash
Raw Normal View History

#!/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
cp enemizer_base_patch.json target/debug/enemizerBasePatch.json