-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
60 lines (53 loc) · 2.15 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
56
57
58
59
60
default:
@echo "No Default make command configured"
@echo "Please use either"
@echo " - make curseforge"
@echo " - make modrinth"
@echo " - make polymc"
@echo " - make technic"
@echo " - make all"
@echo ""
@echo "Curseforge will make a curseforge compatible zip"
@echo ""
@echo "Modrinth will make a Modrinth compatible mrpack"
@echo ""
@echo "PolyMC will make a PolyMC zip file which contains 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"
mkdir -p build
packwiz curseforge export --pack-file ./pack/.minecraft/pack.toml -o ./build/modpack-curseforge.zip
7z d ./build/modpack-curseforge.zip overrides/packwiz-installer-bootstrap.jar overrides/pack.toml overrides/index.toml
modrinth:
@echo "Making Modrinth pack"
mkdir -p build
packwiz modrinth export --pack-file ./pack/.minecraft/pack.toml -o ./build/modpack-modrinth.mrpack
7z d ./build/modpack-modrinth.mrpack overrides/packwiz-installer-bootstrap.jar overrides/pack.toml overrides/index.toml
polymc:
@echo "Making PolyMC pack"
7z d ./build/modpack-polymc.zip ./pack/* -r
7z d ./build/modpack-polymc.zip ./pack/.minecraft -r
7z a ./build/modpack-polymc.zip ./pack/* -r
7z a ./build/modpack-polymc.zip ./pack/.minecraft -r
7z d ./build/modpack-polymc.zip ./pack/.minecraft/mods ./pack/.minecraft/pack.toml ./pack/.minecraft/index.toml -r
technic:
@echo "Making Technic pack"
mkdir -p build
-cp -r ./pack/.minecraft ./build/.technic
-cp ./pack/icon.png ./build/.technic/
cd ./build/.technic && java -jar packwiz-installer-bootstrap.jar https://zekesmith.github.io/HexMC/pack/.minecraft/pack.tomll -g && cd ..
-rm -rf ./build/.technic/packwiz*
7z d ./build/modpack-technic.zip ./build/* -r
7z a ./build/modpack-technic.zip ./build/.technic/* -r
hexserver:
@echo "Making Server pack"
7z d ./build/modpack-server.zip ./server/* -r
7z a ./build/modpack-server.zip ./server/* -r
clean:
-rm -rf ./build/.technic
-git gc --aggressive --prune
all: curseforge modrinth polymc technic server clean