feat: use mpt
This commit is contained in:
parent
07f7d039c1
commit
1d5ac5eafb
39
.drone.yml
39
.drone.yml
|
@ -1,39 +0,0 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
steps:
|
||||
- name: release
|
||||
image: debian:bullseye
|
||||
commands:
|
||||
- apt update
|
||||
- apt install -y
|
||||
curl
|
||||
jq
|
||||
libarchive-dev
|
||||
libcurl4-openssl-dev
|
||||
pkgconf
|
||||
xz-utils
|
||||
- mkdir -p zig
|
||||
- cd zig
|
||||
# this always downloads the latest zig
|
||||
- curl -o zig.tar.xz $(curl 'https://ziglang.org/download/index.json' | jq -r '.master."x86_64-linux".tarball')
|
||||
- tar xf zig.tar.xz
|
||||
- mv zig-linux*/* .
|
||||
- export PATH="$PATH:$(pwd)"
|
||||
- cd ..
|
||||
- BUILD_SIMPLE_OUTPUT=1 ./build.zig
|
||||
|
||||
- name: publish
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
base_url: https://git.tilera.org
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
note: CHANGELOG.md
|
||||
title: tag-${DRONE_TAG}
|
||||
files:
|
||||
- build/mineteck-reloaded-*.zip
|
||||
|
||||
when:
|
||||
event: tag
|
||||
depends_on:
|
||||
- release
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
build/
|
||||
.mpt
|
1225
addon.json
Normal file
1225
addon.json
Normal file
File diff suppressed because it is too large
Load diff
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
Executable file
43
mpt
Executable 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
|
2356
src/modpack.json
2356
src/modpack.json
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue