add curseforge support
This commit is contained in:
parent
ebd9880607
commit
337c0ffc28
2 changed files with 19 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
## Ignore Modpack Updater Script loose files
|
## Ignore Modpack Updater Script loose files
|
||||||
.technic
|
.technic
|
||||||
|
*.zip
|
||||||
|
|
||||||
## Add your modded folders/files to ignore here
|
## Add your modded folders/files to ignore here
|
||||||
.minecraft/mods/
|
.minecraft/mods/
|
||||||
|
|
28
Makefile
28
Makefile
|
@ -1,33 +1,41 @@
|
||||||
default:
|
default:
|
||||||
@echo "No Default make command configured"
|
@echo "No Default make command configured"
|
||||||
@echo "Please use either"
|
@echo "Please use either"
|
||||||
|
@echo " - make curseforge"
|
||||||
@echo " - make multimc"
|
@echo " - make multimc"
|
||||||
@echo " - make technic"
|
@echo " - make technic"
|
||||||
@echo " - make all"
|
@echo " - make all"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "MultiMC will make a pack with the updater.exe built in"
|
@echo "Curseforge will make a curseforge compatible zip"
|
||||||
@echo " along with the git history"
|
@echo "Multimc will make a multimc zip file which contains"
|
||||||
|
@echo " the packwiz updater"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "Techic will make a pack that can be used for technic"
|
@echo "Technic will make a technic pack zip"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "All will make both technic and MultiMC packs"
|
@echo "All will make all packs it can"
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
||||||
|
curseforge:
|
||||||
|
@echo "Making Curseforge pack"
|
||||||
|
@-mkdir ../modpack.curseforge
|
||||||
|
packwiz curseforge export --mods-folder packwiz-data/mods/ --pack-file packwiz-data/pack.toml
|
||||||
|
mv *.zip ../modpack-curseforge/
|
||||||
|
|
||||||
multimc:
|
multimc:
|
||||||
@echo "Making MultiMC pack"
|
@echo "Making MultiMC pack"
|
||||||
7z d ../modpack.zip ./* -r
|
7z d ../modpack-mulitmc.zip ./* -r
|
||||||
7z d ../modpack.zip ./.* -r
|
7z d ../modpack-mulitmc.zip ./.* -r
|
||||||
7z a ../modpack.zip ./* -r
|
7z a ../modpack-mulitmc.zip ./* -r
|
||||||
7z a ../modpack.zip ./.minecraft -r
|
7z a ../modpack-mulitmc.zip ./.minecraft -r
|
||||||
|
|
||||||
technic:
|
technic:
|
||||||
@echo "Making Technic pack"
|
@echo "Making Technic pack"
|
||||||
-rm -rf .technic
|
-rm -rf .technic
|
||||||
-cp -r .minecraft .technic
|
-cp -r .minecraft .technic
|
||||||
mv .technic/modpack.icon.png .technic/icon.png
|
mv .technic/modpack.icon.png .technic/icon.png
|
||||||
cd .technic && java -jar packwiz-installer-bootstrap.jar https://gitlab.com/Merith-TK/modpack-template/-/raw/packwiz/packwiz-data/pack.toml && cd ..
|
cd .technic && java -jar packwiz-installer-bootstrap.jar https://gitlab.com/Merith-TK/modpack-template/-/raw/main/packwiz-data/pack.toml && cd ..
|
||||||
-rm -rf .technic/packwiz*
|
-rm -rf .technic/packwiz*
|
||||||
7z d ../modpack-technic.zip ./* -r
|
7z d ../modpack-technic.zip ./* -r
|
||||||
7z a ../modpack-technic.zip ./.technic/* -r
|
7z a ../modpack-technic.zip ./.technic/* -r
|
||||||
|
|
||||||
all: multimc technic
|
all: curseforge multimc technic
|
Loading…
Reference in a new issue