Clean old build files when compiling mod
This commit is contained in:
parent
85bc4a30af
commit
57c9b1dfe5
|
|
@ -23,10 +23,12 @@ pack_repo="$repo_prefix/SergeantAcoustic/mc_rebalance_datapack.git"
|
|||
git clone "$mod_repo" "$basedir/deps/mc_rebalance" || (cd "$basedir/deps/mc_rebalance"; git pull) || exit 1
|
||||
git clone "$pack_repo" "$basedir/overrides/global_packs/required_data/mc_rebalance_datapack/" || (cd "$basedir/overrides/global_packs/required_data/mc_rebalance_datapack/"; git pull) || exit 1
|
||||
|
||||
rm "$basedir/deps/mc_rebalance/build/libs/mc_rebalance-"*".jar"
|
||||
(cd "$basedir"/deps/mc_rebalance/ && ./gradlew build)
|
||||
|
||||
(cd "$basedir/overrides/global_packs/required_data/mc_rebalance_datapack/assets/minecraft/lang/" && ./gen-langs.sh)
|
||||
|
||||
rm "$basedir/overrides/mods/mc_rebalance-"*".jar"
|
||||
cp "$basedir/deps/mc_rebalance/build/libs/mc_rebalance-"*".jar" "$basedir/overrides/mods"
|
||||
|
||||
# Final path for the modpack
|
||||
|
|
|
|||
Loading…
Reference in a new issue