vanillia-modpack/Makefile

50 lines
1.8 KiB
Makefile
Raw Normal View History

2021-11-30 20:37:34 +00:00
default:
@echo "No Default make command configured"
@echo "Please use either"
@echo " - make curseforge"
2021-11-30 20:37:34 +00:00
@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:
@echo "Making Curseforge pack"
2022-03-02 02:50:49 +00:00
packwiz curseforge export --pack-file .minecraft/pack.toml -o ../vanillia-curseforge.zip
7z d ../vanillia-curseforge.zip overrides/packwiz-installer-bootstrap.jar overrides/pack.toml overrides/index.toml
modrinth:
@echo "Making Modrinth pack"
packwiz modrinth export --pack-file .minecraft/pack.toml -o ../vanillia-modrinth.zip
7z d ../vanillia-modrinth.zip overrides/packwiz-installer-bootstrap.jar overrides/pack.toml overrides/index.toml
2021-11-30 20:37:34 +00:00
multimc:
@echo "Making MultiMC pack"
2022-03-02 02:50:49 +00:00
7z d ../vanillia-multimc.zip ./* -r
7z d ../vanillia-multimc.zip ./.minecraft -r
7z a ../vanillia-multimc.zip ./* -r
7z a ../vanillia-multimc.zip ./.minecraft -r
7z d ../vanillia-multimc.zip ./.minecraft/mods ./.minecraft/pack.toml ./.minecraft/index.toml -r
2021-11-30 20:37:34 +00:00
technic:
@echo "Making Technic pack"
-rm -rf .technic
-cp -r .minecraft .technic
mv .technic/vanillia.icon.png .technic/icon.png
2022-03-02 03:45:39 +00:00
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 ../vanillia-technic.zip ./* ./.* -r
7z a ../vanillia-technic.zip ./.technic/* -r
2021-11-30 20:37:34 +00:00
2022-02-25 21:38:29 +00:00
clean:
-rm -rf .technic
-git gc --aggressive --prune
2022-03-02 02:50:49 +00:00
all: curseforge modrinth multimc technic clean