generated from Merith-TK/modpack-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (48 loc) · 1.8 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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:
@echo "Making Curseforge pack"
packwiz curseforge export --pack-file .minecraft/pack.toml -o ../modpack-curseforge.zip
7z d ../modpack-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 ../modpack-modrinth.zip
7z d ../modpack-modrinth.zip overrides/packwiz-installer-bootstrap.jar overrides/pack.toml overrides/index.toml
multimc:
@echo "Making MultiMC pack"
7z d ../modpack-multimc.zip ./* -r
7z d ../modpack-multimc.zip ./.minecraft -r
7z a ../modpack-multimc.zip ./* -r
7z a ../modpack-multimc.zip ./.minecraft -r
7z d ../modpack-multimc.zip ./.minecraft/mods ./.minecraft/pack.toml ./.minecraft/index.toml -r
technic:
@echo "Making Technic pack"
-rm -rf .technic
-cp -r .minecraft .technic
mv .technic/modpack.icon.png .technic/icon.png
cd .technic && java -jar packwiz-installer-bootstrap.jar https://gitlab.com/Merith-TK/modpack-template/-/raw/main/.minecraft/pack.toml && cd ..
-rm -rf .technic/packwiz*
7z d ../modpack-technic.zip ./* -r
7z a ../modpack-technic.zip ./.technic/* -r
clean:
-rm -rf .technic
-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"