Change how mc_rebalance_datapack is fetched
* Delete submodule * Add old submodule's repo to export-pack.sh script * Update README accordingly
This commit is contained in:
parent
976d9b9f79
commit
651b7bb150
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
release
|
release
|
||||||
deps
|
deps
|
||||||
overrides/mods/0.0.1.jar
|
overrides/mods/0.0.1.jar
|
||||||
|
overrides/global_packs/required_data/mc_rebalance_datapack/
|
||||||
|
|
|
||||||
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -1,3 +0,0 @@
|
||||||
[submodule "overrides/global_packs/required_data/mc_rebalance_datapack"]
|
|
||||||
path = overrides/global_packs/required_data/mc_rebalance_datapack
|
|
||||||
url = https://patience.nearmisses.xyz/SergeantAcoustic/mc_rebalance_datapack
|
|
||||||
30
README.md
30
README.md
|
|
@ -1,6 +1,6 @@
|
||||||
# Tinker's Tinkering
|
# Tinker's Tinkering
|
||||||
|
|
||||||
First modpack variant for [mc_rebalance](https://patience.nearmisses.xyz/patience/mc_rebalance)
|
First modpack variant for [Minecraft Rebalance](https://patience.nearmisses.xyz/patience/mc_rebalance)
|
||||||
|
|
||||||
Packed in modrith format, for hosting make sure to add [for-host-put-these-in-world](overrides/for-host-put-these-in-world) to your world file
|
Packed in modrith format, for hosting make sure to add [for-host-put-these-in-world](overrides/for-host-put-these-in-world) to your world file
|
||||||
|
|
||||||
|
|
@ -9,26 +9,20 @@ Packed in modrith format, for hosting make sure to add [for-host-put-these-in-wo
|
||||||
2. Drag into your mod loader of choice
|
2. Drag into your mod loader of choice
|
||||||
|
|
||||||
# Development
|
# Development
|
||||||
This repository imports mc_rebalance_datapack as a submodule
|
## Export script
|
||||||
|
|
||||||
Clone this repo with `git clone --recurse-submodules https://patience.nearmisses.xyz/SergeantAcoustic/tinkers_tinkering.git`
|
|
||||||
|
|
||||||
When pulling, include the submodule with `git pull --recurse-submodules`
|
|
||||||
|
|
||||||
## Updating submodule upstream
|
|
||||||
To update the embedded submodule to the latest available version:
|
|
||||||
1. If you cloned without `--recurse-submodules` run `git submodule update --init`
|
|
||||||
2. Run `git submodule update --remote` to update it
|
|
||||||
3. Stage the submodule's new pointer (e.g. `git add overrides/global_packs/required_data/mc_rebalance`)
|
|
||||||
4. Commit as usual (e.g. `git commit -m "Updated submodule"`)
|
|
||||||
5. `git push`
|
|
||||||
|
|
||||||
## Exporting
|
|
||||||
To create a release, run [./export-pack.sh](export-pack.sh)
|
To create a release, run [./export-pack.sh](export-pack.sh)
|
||||||
|
|
||||||
* It will be generated in [release/Tinker's tinkering.mrpack](Tinker's%20tinkering.mrpack)
|
* It will be generated in [release/Tinker's tinkering.mrpack](Tinker's%20tinkering.mrpack)
|
||||||
|
|
||||||
* This script clones the [mc_rebalace](https://patience.nearmisses.xyz/patience/mc_rebalance) repo, so you will need to provide login credentials to git
|
### Saving login details
|
||||||
|
This script clones the [mc_rebalace](https://patience.nearmisses.xyz/patience/mc_rebalance) and [mc_rebalance_datapack](https://patience.nearmisses.xyz/SergeantAcoustic/mc_rebalance_datapack) repos, so you will need to provide login credentials to git twice every time you run the script.
|
||||||
|
|
||||||
* Running `git config --global credential.helper store` will save these credentials to your global git config directory, saving having to input them again for nearmisses.xyz
|
To solve this, consider one of the following:
|
||||||
|
|
||||||
|
#### SSH mode
|
||||||
|
Refer to [this guide](https://docs.codeberg.org/security/ssh-key/) on how to set up SSH key authentication
|
||||||
|
|
||||||
|
#### HTTPS mode
|
||||||
|
* To clone the repositories in HTTPS mode, run the script with any data at the end i.e. `./export-pack.sh 1`
|
||||||
|
* Running `git config --global credential.helper store` will save your credentials to your global git config directory
|
||||||
* **Beware that this is stored in plaintext, so only do it on a private device**
|
* **Beware that this is stored in plaintext, so only do it on a private device**
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,19 @@ if [ ! -d deps ]; then
|
||||||
mkdir deps
|
mkdir deps
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
# Clone repo if it exists, otherwise, update it
|
# If the user provides input e.g. `./export-pack.sh 1`, clone the repository using https
|
||||||
# You may need to input login credentials due to the repo being private
|
if [ -n "$1" ]; then
|
||||||
# If you do, consider running `git config --global credential.helper store`
|
repo_prefix="https://patience.nearmisses.xyz/"
|
||||||
# Warning: saves as plaintext on your disk in your global git directory
|
else
|
||||||
git clone https://patience.nearmisses.xyz/patience/mc_rebalance $basedir/deps/mc_rebalance || (cd $basedir/deps/mc_rebalance; git pull) || exit 1
|
repo_prefix="forgejo@patience.nearmisses.xyz:"
|
||||||
|
fi
|
||||||
|
|
||||||
|
mod_repo="$repo_prefix/patience/mc_rebalance.git"
|
||||||
|
pack_repo="$repo_prefix/SergeantAcoustic/mc_rebalance_datapack.git"
|
||||||
|
|
||||||
|
# Clone the repos if they exist, otherwise, update them
|
||||||
|
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
|
||||||
|
|
||||||
(cd "$basedir"/deps/mc_rebalance/ && ./gradlew build)
|
(cd "$basedir"/deps/mc_rebalance/ && ./gradlew build)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 931fef22686591dcc619e1d800b02cd63c1be352
|
|
||||||
Loading…
Reference in a new issue