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 ""
|
2023-03-11 01:31:48 +00:00
|
|
|
|
|
|
|
PACKNAME := $(notdir $(CURDIR))
|
|
|
|
|
2022-02-25 19:48:07 +00:00
|
|
|
curseforge:
|
2023-03-11 01:31:48 +00:00
|
|
|
-mkdir .build
|
2022-02-25 19:48:07 +00:00
|
|
|
@echo "Making Curseforge pack"
|
2023-03-11 01:31:48 +00:00
|
|
|
packwiz curseforge export --pack-file .minecraft/pack.toml
|
|
|
|
mv ./*.zip ./.build/
|
2022-03-02 02:47:39 +00:00
|
|
|
|
|
|
|
modrinth:
|
2023-03-11 01:31:48 +00:00
|
|
|
-mkdir .build
|
2022-03-02 02:47:39 +00:00
|
|
|
@echo "Making Modrinth pack"
|
2023-03-11 01:31:48 +00:00
|
|
|
packwiz modrinth export --pack-file .minecraft/pack.toml
|
|
|
|
mv ./*.mrpack ./.build/
|
2022-02-25 19:48:07 +00:00
|
|
|
|
2021-08-29 21:46:40 +01:00
|
|
|
multimc:
|
2023-03-11 01:31:48 +00:00
|
|
|
-mkdir .build
|
2022-02-25 19:07:26 +00:00
|
|
|
@echo "Making MultiMC pack"
|
2023-03-11 01:31:48 +00:00
|
|
|
7z d .build/${PACKNAME}-multimc.zip ./* -r
|
|
|
|
7z d .build/${PACKNAME}-multimc.zip ./.minecraft -r
|
|
|
|
7z a .build/${PACKNAME}-multimc.zip ./* -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
|
2021-08-29 21:46:40 +01:00
|
|
|
|
|
|
|
technic:
|
2023-03-11 01:31:48 +00:00
|
|
|
-mkdir .build
|
2022-02-25 19:07:26 +00:00
|
|
|
@echo "Making Technic pack"
|
|
|
|
-rm -rf .technic
|
|
|
|
-cp -r .minecraft .technic
|
2023-03-11 01:31:48 +00:00
|
|
|
cp ${PACKNAME}_icon.png .technic/icon.png
|
|
|
|
cd .technic && java -jar ../.minecraft/packwiz-installer-bootstrap.jar ../.minecraft/pack.toml && cd ..
|
|
|
|
-rm -rf .technic/packwiz* .technic/index.toml .technic/pack.toml .technic/mods/*.toml
|
|
|
|
7z d .build/${PACKNAME}-technic.zip ./* ./.* -r
|
|
|
|
7z a .build/${PACKNAME}-technic.zip ./.technic/* -r
|
2021-08-29 21:46:40 +01:00
|
|
|
|
2023-03-11 01:31:48 +00:00
|
|
|
preClean:
|
|
|
|
-rm -rf .build
|
|
|
|
postClean:
|
2022-02-27 19:35:13 +00:00
|
|
|
-rm -rf .technic
|
|
|
|
-git gc --aggressive --prune
|
|
|
|
|
2023-03-11 01:31:48 +00:00
|
|
|
all: preClean curseforge modrinth multimc technic postClean
|
2022-05-27 16:12:41 +01:00
|
|
|
|
|
|
|
update-packwiz:
|
|
|
|
go install github.com/packwiz/packwiz@latest
|
|
|
|
clear
|
|
|
|
@echo "Packwiz has been Updated"
|