From 69502e5f7ca9f862515580a7fcf89754d42a8433 Mon Sep 17 00:00:00 2001 From: Timo Ley Date: Wed, 29 Jul 2020 18:05:27 +0200 Subject: [PATCH 1/2] Update script --- mpt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mpt b/mpt index c2f6ee6..93c40be 100644 --- a/mpt +++ b/mpt @@ -1,5 +1,5 @@ #!/bin/sh -cd "$(dirname "$0")" +cd "$(dirname "$0")" || exit case $1 in install) if ! [ -d "$HOME/.mpt" ]; @@ -12,6 +12,16 @@ install) curl $dl --output $HOME/.mpt/mpt.jar fi ;; +update) + dl=$(curl https://data.tilera.xyz/file/mpt/mpt-latest) + echo Downloading $dl ... + if [ -f "$HOME/.mpt/mpt.jar" ] + then + curl $dl --output $HOME/.mpt/mpt.jar + else + curl $dl --output .mpt/mpt.jar + fi + ;; *) if ! [ -d ".mpt" ]; then mkdir .mpt From bf13814d2e6071ce85a67a588ea4e5bfaf8e3b69 Mon Sep 17 00:00:00 2001 From: Timo Ley Date: Wed, 29 Jul 2020 18:46:25 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 71ef384..6eb37dc 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,6 @@ --- this is the repo for the next anvilcraft minecraft modpack -this was made using [modpacktools](https://github.com/Anvilcraft/modpacktools) \ No newline at end of file +run './mpt buildtwitch' on Linux or in the git-bash to build the pack for the Twitch Launcher + +this was made using [modpacktools](https://github.com/Anvilcraft/modpacktools)