mirror of
https://gitlab.com/Merith-TK/vanillia-modpack.git
synced 2024-11-22 22:29:30 +00:00
v1.5-1.19.2
This commit is contained in:
parent
ef31adb785
commit
8e7315b524
2 changed files with 58 additions and 19 deletions
|
@ -1,6 +1,6 @@
|
||||||
name = "Vanillia"
|
name = "Vanillia"
|
||||||
author = "Merith.TK, Daedreus"
|
author = "Merith.TK, Daedreus"
|
||||||
version = "1.19.3-1.3.1"
|
version = "1.5-1.19.2"
|
||||||
pack-format = "packwiz:1.1.0"
|
pack-format = "packwiz:1.1.0"
|
||||||
|
|
||||||
[index]
|
[index]
|
||||||
|
|
75
Makefile
75
Makefile
|
@ -1,44 +1,56 @@
|
||||||
default:
|
default:
|
||||||
@echo "No Default make command configured"
|
@echo "No Default make command configured"
|
||||||
@echo "Please use either"
|
@echo "Please use either"
|
||||||
@echo " - make curseforge"
|
@echo " - make multimc"
|
||||||
@echo " - make multimc"
|
@echo " - make curseforge"
|
||||||
@echo " - make technic"
|
@echo " - make modrinth"
|
||||||
@echo " - make all"
|
@echo " - make technic"
|
||||||
|
@echo " - make server"
|
||||||
|
@echo " - make all"
|
||||||
|
@echo ""
|
||||||
|
@echo "Curseforge will make a curseforge import file"
|
||||||
|
@echo ""
|
||||||
|
@echo "Modrinth will make a modrinth import file"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "Curseforge will make a curseforge compatible zip"
|
|
||||||
@echo "Multimc will make a multimc zip file which contains"
|
@echo "Multimc will make a multimc zip file which contains"
|
||||||
@echo " the packwiz updater"
|
@echo " the packwiz updater"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "Technic will make a technic pack zip"
|
@echo "Technic will make a technic pack zip"
|
||||||
@echo ""
|
@echo ""
|
||||||
|
@echo "Server will make a server pack zip"
|
||||||
|
@echo " This will include the packwiz updater,"
|
||||||
|
@echo " but will not be configured to run by default"
|
||||||
|
@echo ""
|
||||||
@echo "All will make all packs it can"
|
@echo "All will make all packs it can"
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
||||||
PACKNAME := $(notdir $(CURDIR))
|
PACKNAME := $(notdir $(CURDIR))
|
||||||
|
PACKURL := $(shell pw detect)
|
||||||
|
|
||||||
curseforge:
|
curseforge: refresh
|
||||||
-mkdir .build
|
-mkdir .build
|
||||||
@echo "Making Curseforge pack"
|
@echo "Making Curseforge pack"
|
||||||
packwiz curseforge export --pack-file .minecraft/pack.toml
|
packwiz curseforge export --pack-file .minecraft/pack.toml
|
||||||
mv ./*.zip ./.build/
|
|
||||||
|
|
||||||
modrinth:
|
|
||||||
|
modrinth: refresh
|
||||||
-mkdir .build
|
-mkdir .build
|
||||||
@echo "Making Modrinth pack"
|
@echo "Making Modrinth pack"
|
||||||
packwiz modrinth export --pack-file .minecraft/pack.toml
|
packwiz modrinth export --pack-file .minecraft/pack.toml
|
||||||
mv ./*.mrpack ./.build/
|
|
||||||
|
|
||||||
multimc:
|
|
||||||
|
multimc: refresh
|
||||||
-mkdir .build
|
-mkdir .build
|
||||||
@echo "Making MultiMC pack"
|
@echo "Making MultiMC pack"
|
||||||
7z d .build/${PACKNAME}-multimc.zip ./* -r
|
7z d .build/${PACKNAME}-multimc.zip ./* -r
|
||||||
7z d .build/${PACKNAME}-multimc.zip ./.minecraft -r
|
7z d .build/${PACKNAME}-multimc.zip ./.minecraft -r
|
||||||
|
@sed -i 's#{PACKURL}#${PACKURL}#' instance.cfg
|
||||||
7z a .build/${PACKNAME}-multimc.zip ./* -r
|
7z a .build/${PACKNAME}-multimc.zip ./* -r
|
||||||
7z a .build/${PACKNAME}-multimc.zip ./.minecraft -r
|
7z a .build/${PACKNAME}-multimc.zip ./.minecraft -r
|
||||||
7z d .build/${PACKNAME}-multimc.zip ./.build ./.minecraft/mods ./.minecraft/pack.toml ./.minecraft/index.toml -r
|
7z d .build/${PACKNAME}-multimc.zip ./.build ./.minecraft/mods ./.minecraft/pack.toml ./.minecraft/index.toml -r
|
||||||
|
@sed -i 's#${PACKURL}#{PACKURL}#' instance.cfg
|
||||||
|
|
||||||
technic:
|
technic: refresh
|
||||||
-mkdir .build
|
-mkdir .build
|
||||||
@echo "Making Technic pack"
|
@echo "Making Technic pack"
|
||||||
-rm -rf .technic
|
-rm -rf .technic
|
||||||
|
@ -49,15 +61,42 @@ technic:
|
||||||
7z d .build/${PACKNAME}-technic.zip ./* ./.* -r
|
7z d .build/${PACKNAME}-technic.zip ./* ./.* -r
|
||||||
7z a .build/${PACKNAME}-technic.zip ./.technic/* -r
|
7z a .build/${PACKNAME}-technic.zip ./.technic/* -r
|
||||||
|
|
||||||
preClean:
|
server: refresh
|
||||||
-rm -rf .build
|
-mkdir .build
|
||||||
postClean:
|
@echo "Making Server pack"
|
||||||
-rm -rf .technic
|
-rm -rf .server
|
||||||
-git gc --aggressive --prune
|
-cp -r .minecraft .server
|
||||||
|
cp ${PACKNAME}_icon.png .server/server-icon.png
|
||||||
|
cd .server && java -jar ../.minecraft/packwiz-installer-bootstrap.jar -s server ../.minecraft/pack.toml && cd ..
|
||||||
|
7z d .build/${PACKNAME}-server.zip ./* ./.* -r
|
||||||
|
7z a .build/${PACKNAME}-server.zip ./.server/* -r
|
||||||
|
|
||||||
all: preClean curseforge modrinth multimc technic postClean
|
preClean: refresh
|
||||||
|
-rm -rf .build
|
||||||
|
-rm -rf .server
|
||||||
|
postClean: refresh
|
||||||
|
-rm -rf .technic
|
||||||
|
-rm -rf .server
|
||||||
|
-git gc --aggressive --prune
|
||||||
|
clean: preClean postClean
|
||||||
|
|
||||||
|
all: preClean curseforge modrinth multimc technic server postClean
|
||||||
|
mv ./*.mrpack ./.build/${PACKNAME}-modrinth.mrpack
|
||||||
|
mv ./*.zip ./.build/${PACKNAME}-curseforge.zip
|
||||||
|
|
||||||
|
refresh:
|
||||||
|
cd .minecraft && packwiz refresh
|
||||||
|
|
||||||
update-packwiz:
|
update-packwiz:
|
||||||
go install github.com/packwiz/packwiz@latest
|
go install github.com/packwiz/packwiz@latest
|
||||||
|
go install github.com/Merith-TK/packwiz-wrapper/cmd/pw@main
|
||||||
clear
|
clear
|
||||||
@echo "Packwiz has been Updated"
|
@echo "Packwiz has been Updated"
|
||||||
|
|
||||||
|
run-server:
|
||||||
|
@cd .minecraft && pw refresh && cd ..
|
||||||
|
@-mkdir .run
|
||||||
|
@echo "eula=true" > .run/eula.txt
|
||||||
|
@cd .run && java -jar ../.minecraft/packwiz-installer-bootstrap.jar ../.minecraft/pack.toml -s server && cd ..
|
||||||
|
@cd .run && java -Xmx2G -Xms2G -jar server.jar nogui && cd ..
|
||||||
|
|
Loading…
Reference in a new issue