mirror of
https://gitlab.com/Merith-TK/vanillia-modpack.git
synced 2024-11-22 22:29:30 +00:00
60 lines
2 KiB
Makefile
60 lines
2 KiB
Makefile
default:
|
|
@echo "No Default make command configured"
|
|
@echo "Please use either"
|
|
@echo " - make curseforge"
|
|
@echo " - make multimc"
|
|
@echo " - make technic"
|
|
@echo " - make all"
|
|
@echo ""
|
|
@echo "Curseforge will make a curseforge compatible zip"
|
|
@echo "Multimc will make a multimc zip file which contains"
|
|
@echo " the packwiz updater"
|
|
@echo ""
|
|
@echo "Technic will make a technic pack zip"
|
|
@echo ""
|
|
@echo "All will make all packs it can"
|
|
@echo ""
|
|
|
|
curseforge:
|
|
-mkdir .build
|
|
@echo "Making Curseforge pack"
|
|
packwiz curseforge export --pack-file .minecraft/pack.toml -o .build/vanillia-curseforge.zip
|
|
7z d .build/vanillia-curseforge.zip overrides/packwiz-installer-bootstrap.jar overrides/pack.toml overrides/index.toml
|
|
|
|
modrinth:
|
|
-mkdir .build
|
|
@echo "Making Modrinth pack"
|
|
packwiz modrinth export --pack-file .minecraft/pack.toml -o .build/vanillia-modrinth.zip
|
|
7z d .build/vanillia-modrinth.zip overrides/packwiz-installer-bootstrap.jar overrides/pack.toml overrides/index.toml
|
|
|
|
multimc:
|
|
-mkdir .build
|
|
@echo "Making MultiMC pack"
|
|
7z d .build/vanillia-multimc.zip ./* -r
|
|
7z d .build/vanillia-multimc.zip ./.minecraft -r
|
|
7z a .build/vanillia-multimc.zip ./* -r
|
|
7z a .build/vanillia-multimc.zip ./.minecraft -r
|
|
7z d .build/vanillia-multimc.zip ./.minecraft/mods ./.minecraft/pack.toml ./.minecraft/index.toml -r
|
|
|
|
technic:
|
|
-mkdir .build
|
|
@echo "Making Technic pack"
|
|
-rm -rf .technic
|
|
-cp -r .minecraft .technic
|
|
cp vanillia_icon.png .technic/icon.png
|
|
cd .technic && java -jar ../.minecraft/packwiz-installer-bootstrap.jar https://gitlab.com/Merith-TK/vanillia-modpack/-/raw/main/.minecraft/pack.toml && cd ..
|
|
-rm -rf .technic/packwiz* .technic/index.toml .technic/pack.toml .technic/mods/*.toml
|
|
7z d .build/vanillia-technic.zip ./* ./.* -r
|
|
7z a .build/vanillia-technic.zip ./.technic/* -r
|
|
|
|
clean:
|
|
-rm -rf .technic
|
|
-rm -rf .build
|
|
-git gc --aggressive --prune
|
|
|
|
all: curseforge modrinth multimc technic clean
|
|
|
|
update-packwiz:
|
|
go install github.com/packwiz/packwiz@latest
|
|
clear
|
|
@echo "Packwiz has been Updated"
|