ultron/Makefile

49 lines
1.4 KiB
Makefile
Raw Normal View History

2021-08-29 21:46:40 +01:00
default:
@echo "No Default make command configured"
@echo "Please use either"
2022-02-25 19:48:07 +00:00
@echo " - make curseforge"
2021-08-29 21:46:40 +01:00
@echo " - make multimc"
@echo " - make technic"
@echo " - make all"
@echo ""
2022-02-25 19:48:07 +00:00
@echo "Curseforge will make a curseforge compatible zip"
@echo "Multimc will make a multimc zip file which contains"
@echo " the packwiz updater"
2021-08-29 21:46:40 +01:00
@echo ""
2022-02-25 19:48:07 +00:00
@echo "Technic will make a technic pack zip"
2021-08-29 21:46:40 +01:00
@echo ""
2022-02-25 19:48:07 +00:00
@echo "All will make all packs it can"
2022-02-25 19:07:26 +00:00
@echo ""
2022-02-25 19:48:07 +00:00
curseforge:
@echo "Making Curseforge pack"
@-mkdir ../modpack-curseforge
2022-02-25 19:48:07 +00:00
packwiz curseforge export --mods-folder packwiz-data/mods/ --pack-file packwiz-data/pack.toml
cp -r .minecraft overrides
7z a *.zip overrides
rm -rf overrides
2022-02-25 19:48:07 +00:00
mv *.zip ../modpack-curseforge/
2021-08-29 21:46:40 +01:00
multimc:
2022-02-25 19:07:26 +00:00
@echo "Making MultiMC pack"
7z d ../modpack-multimc.zip ./* -r
7z d ../modpack-multimc.zip ./.* -r
7z a ../modpack-multimc.zip ./* -r
7z a ../modpack-multimc.zip ./.minecraft -r
2021-08-29 21:46:40 +01:00
technic:
2022-02-25 19:07:26 +00:00
@echo "Making Technic pack"
-rm -rf .technic
-cp -r .minecraft .technic
mv .technic/modpack.icon.png .technic/icon.png
2022-02-25 19:48:07 +00:00
cd .technic && java -jar packwiz-installer-bootstrap.jar https://gitlab.com/Merith-TK/modpack-template/-/raw/main/packwiz-data/pack.toml && cd ..
2022-02-25 19:07:26 +00:00
-rm -rf .technic/packwiz*
2021-08-29 21:46:40 +01:00
7z d ../modpack-technic.zip ./* -r
2022-02-25 19:07:26 +00:00
7z a ../modpack-technic.zip ./.technic/* -r
2021-08-29 21:46:40 +01:00
2022-02-27 19:35:13 +00:00
clean:
-rm -rf .technic
-git gc --aggressive --prune
all: curseforge multimc technic clean