Init
This commit is contained in:
commit
4d1075757c
4 changed files with 117 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
.mpt
|
||||
build
|
||||
.idea
|
14
modpacktoolsconfig.toml
Normal file
14
modpacktoolsconfig.toml
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Locations]
|
||||
#The location of the twitch manifest file (will be replaced with addonscript in later versions)
|
||||
manifestFile = "src/twitch/manifest.json"
|
||||
#The location of the source
|
||||
src = "src"
|
||||
#The location used to store temporary files
|
||||
tempDir = ".mpt"
|
||||
[Local]
|
||||
selectedVersion = -1
|
||||
[Downloads]
|
||||
#The maximum number of threads that will be used for downloads
|
||||
maxThreads = 5
|
||||
#The timeout of http requests in ms
|
||||
httpTimeout = 2147483647
|
43
mpt
Normal file
43
mpt
Normal file
|
@ -0,0 +1,43 @@
|
|||
#!/bin/sh
|
||||
cd "$(dirname "$0")" || exit
|
||||
case $1 in
|
||||
install)
|
||||
if ! [ -d "$HOME/.mpt" ];
|
||||
then mkdir $HOME/.mpt
|
||||
fi
|
||||
if ! [ -f "$HOME/.mpt/mpt.jar" ];
|
||||
then
|
||||
dl=$(curl https://data.tilera.xyz/api/mpt.php/latest)
|
||||
echo Downloading $dl ...
|
||||
curl $dl --output $HOME/.mpt/mpt.jar
|
||||
fi
|
||||
;;
|
||||
update)
|
||||
dl=$(curl https://data.tilera.xyz/api/mpt.php/latest)
|
||||
echo Downloading $dl ...
|
||||
if [ -f ".mpt/mpt.jar" ]
|
||||
then
|
||||
curl $dl --output .mpt/mpt.jar
|
||||
else
|
||||
curl $dl --output $HOME/.mpt/mpt.jar
|
||||
fi
|
||||
echo Updating Script
|
||||
curl https://data.tilera.xyz/api/mpt.php/script > mpt
|
||||
;;
|
||||
*)
|
||||
if ! [ -d ".mpt" ];
|
||||
then mkdir .mpt
|
||||
fi
|
||||
if [ -f ".mpt/mpt.jar" ];
|
||||
then jar=.mpt/mpt.jar
|
||||
elif [ -f "$HOME.mpt/mpt.jar" ];
|
||||
then jar=$HOME.mpt/mpt.jar
|
||||
else
|
||||
dl=$(curl https://data.tilera.xyz/api/mpt.php/latest)
|
||||
echo Downloading $dl ...
|
||||
curl $dl --output .mpt/mpt.jar
|
||||
jar=.mpt/mpt.jar
|
||||
fi
|
||||
java -jar $jar $*
|
||||
;;
|
||||
esac
|
57
src/modpack.json
Normal file
57
src/modpack.json
Normal file
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"id": "testcraftp2",
|
||||
"type": "modpack",
|
||||
"versions": [
|
||||
{
|
||||
"version": "1.0"
|
||||
"versionid": -1,
|
||||
"mcversion": [
|
||||
"1.6.4"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"id": "overrides",
|
||||
"installer": "internal.overrides",
|
||||
"link": "file://overrides",
|
||||
"options": [
|
||||
"client",
|
||||
"server",
|
||||
"required",
|
||||
"included"
|
||||
]
|
||||
}
|
||||
],
|
||||
"relations": [
|
||||
{
|
||||
"id": "forge",
|
||||
"versions": "[1.6.4-9.11.1.1345]",
|
||||
"type": "modloader",
|
||||
"options": [
|
||||
"required",
|
||||
"client",
|
||||
"server",
|
||||
"included"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"name": "Testcraft Phase 2",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "tilera",
|
||||
"roles": [
|
||||
"owner"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "LordMZTE",
|
||||
"roles": [
|
||||
"author"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"asversion": 1
|
||||
}
|
Loading…
Reference in a new issue