restructure template for ease of use

This commit is contained in:
Merith TK 2022-03-01 18:47:39 -08:00
parent bff2326285
commit 0958674598
8 changed files with 26 additions and 12 deletions

2
.gitignore vendored
View file

@ -11,8 +11,8 @@
## Ignore Modpack Updater Script loose files ## Ignore Modpack Updater Script loose files
.technic .technic
*.zip *.zip
*.mrpack
## Add your modded folders/files to ignore here ## Add your modded folders/files to ignore here
.minecraft/mods/
.minecraft/packwiz-installer.jar .minecraft/packwiz-installer.jar
.minecraft/packwiz.json .minecraft/packwiz.json

View file

@ -1,5 +1,13 @@
hash-format = "sha256" hash-format = "sha256"
[[files]]
file = "bin/version.json"
hash = "b5f8dc11af2e5d2eeb17007a53fced417fdb3020baac8a8f8dd230a2d3fd854e"
[[files]]
file = "modpack.icon.png"
hash = "50f74a7debb4a852e1384434500515f2478b8dcf0d71b75eba148ca34d89715c"
[[files]] [[files]]
file = "mods/lithium.toml" file = "mods/lithium.toml"
hash = "5a5c6174eda3db8594761efaf64308c44702b3f2a25957b0c35825b0109a1ef0" hash = "5a5c6174eda3db8594761efaf64308c44702b3f2a25957b0c35825b0109a1ef0"
@ -14,3 +22,7 @@ metafile = true
file = "mods/sodium.toml" file = "mods/sodium.toml"
hash = "4aba93a705eb2c6300818297bc1d85329b9b085392810dbf15c79b5e3dd6d0ef" hash = "4aba93a705eb2c6300818297bc1d85329b9b085392810dbf15c79b5e3dd6d0ef"
metafile = true metafile = true
[[files]]
file = "packwiz-installer-bootstrap.jar"
hash = "a8fbb24dc604278e97f4688e82d3d91a318b98efc08d5dbfcbcbcab6443d116c"

View file

@ -6,7 +6,7 @@ pack-format = "packwiz:1.0.0"
[index] [index]
file = "index.toml" file = "index.toml"
hash-format = "sha256" hash-format = "sha256"
hash = "966ec7345bb3c3de690051089956c93804081fbcb5b6e2484304f14c266bd397" hash = "d021bf567c5145418d5c6aec8806f0c9b0d7f8cf9b8a820301e8998e797f59c0"
[versions] [versions]
fabric = "0.13.3" fabric = "0.13.3"

View file

@ -17,26 +17,28 @@ default:
curseforge: curseforge:
@echo "Making Curseforge pack" @echo "Making Curseforge pack"
@-mkdir ../modpack-curseforge packwiz curseforge export --pack-file .minecraft/pack.toml -o ../modpack-curseforge.zip
packwiz curseforge export --mods-folder packwiz-data/mods/ --pack-file packwiz-data/pack.toml 7z d ../modpack-curseforge.zip overrides/packwiz-installer-bootstrap.jar overrides/pack.toml overrides/index.toml
cp -r .minecraft overrides
7z a *.zip overrides modrinth:
rm -rf overrides @echo "Making Modrinth pack"
mv *.zip ../modpack-curseforge/ 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: multimc:
@echo "Making MultiMC pack" @echo "Making MultiMC pack"
7z d ../modpack-multimc.zip ./* -r 7z d ../modpack-multimc.zip ./* -r
7z d ../modpack-multimc.zip ./.* -r 7z d ../modpack-multimc.zip ./.minecraft -r
7z a ../modpack-multimc.zip ./* -r 7z a ../modpack-multimc.zip ./* -r
7z a ../modpack-multimc.zip ./.minecraft -r 7z a ../modpack-multimc.zip ./.minecraft -r
7z d ../modpack-multimc.zip ./.minecraft/mods ./.minecraft/pack.toml ./.minecraft/index.toml -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/main/packwiz-data/pack.toml && cd .. 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* -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
@ -45,4 +47,4 @@ clean:
-rm -rf .technic -rm -rf .technic
-git gc --aggressive --prune -git gc --aggressive --prune
all: curseforge multimc technic clean all: curseforge modrinth multimc technic clean

View file

@ -2,4 +2,4 @@ InstanceType=OneSix
iconKey=modpack.icon iconKey=modpack.icon
name=Modpack Template name=Modpack Template
OverrideCommands=true OverrideCommands=true
PreLaunchCommand=$INST_JAVA -jar packwiz-installer-bootstrap.jar https://gitlab.com/Merith-TK/modpack-template/-/raw/packwiz/packwiz-data/pack.toml PreLaunchCommand=$INST_JAVA -jar packwiz-installer-bootstrap.jar https://gitlab.com/Merith-TK/modpack-template/-/raw/main/.minecraft/pack.toml