#!/bin/bash # Main modpack project directory cd "$(dirname "$0")" basedir="$PWD" (cd "$basedir/overrides/global_packs/required_data/mc_rebalance_datapack/assets/minecraft/lang/" && ./gen-langs.sh) # Final path for the modpack if [ ! -d release ]; then mkdir release fi; # Get version from the mrpack file version="$(jq -r ".versionId" modrinth.index.json)" # Export release to file zip -FSr "$basedir/release/MC_Rebalance_${version}.mrpack" overrides modrinth.index.json -x "*.git*"