28 lines
910 B
Bash
Executable file
28 lines
910 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Main modpack project directory
|
|
cd "$(dirname "$0")"
|
|
basedir="$PWD"
|
|
|
|
# Location for downloading/updating the mc_rebalance mod
|
|
if [ ! -d deps ]; then
|
|
mkdir deps
|
|
fi;
|
|
|
|
# Clone repo if it exists, otherwise, update it
|
|
# You may need to input login credentials due to the repo being private
|
|
# If you do, consider running `git config --global credential.helper store`
|
|
# Warning: saves as plaintext on your disk in your global git directory
|
|
git clone https://patience.nearmisses.xyz/patience/mc_rebalance $basedir/deps/mc_rebalance || (cd $basedir/deps/mc_rebalance; git pull) || exit 1
|
|
|
|
(cd "$basedir"/deps/mc_rebalance/ && ./gradlew build)
|
|
|
|
cp "$basedir/deps/mc_rebalance/build/libs/mc_rebalance-1.20.1/0.0.1.jar" "$basedir/overrides/mods"
|
|
|
|
# Final path for the modpack
|
|
if [ ! -d release ]; then
|
|
mkdir release
|
|
fi;
|
|
|
|
zip -FSr "$basedir/release/Tinker's tinkering.mrpack" overrides modrinth.index.json
|