Skip to content

Commit

Permalink
init: basic structure & build system
Browse files Browse the repository at this point in the history
  • Loading branch information
CompeyDev committed Aug 18, 2023
0 parents commit 6f99550
Show file tree
Hide file tree
Showing 38 changed files with 632 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Built modpacks
/**/*.mrpack
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
all: build

test: build clean

build:
./build.sh && echo -e "\n"

clean:
./clean.sh && echo -e "\n"
36 changes: 36 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/bash

set -e

cd versions/quilt/1.20.1
echo "####################################"
echo " Updating hashes for mod metafiles..."
echo "####################################"

source ../../../update_hashes.sh mods

declare -a deps=("packwiz" "sed")

echo ""
echo "#############################"
echo " Checking for dependencies..."
echo "#############################"

for dep in ${deps[@]}
do
if ! which $dep 2>/dev/null; then
echo "[!] Dependency $dep not found!"
exit 1
else
echo -e "\e[1A\e[K[*] FOUND: $dep"
fi
done

echo ""
echo "##################################"
echo " Building modpack for modrinth..."
echo "##################################"

packwiz modrinth export | sed 's/^/[packwiz]: /'

echo -e "\nBuild modpack successfully!"
5 changes: 5 additions & 0 deletions clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
echo "############################"
echo " Cleaning build artifacts..."
echo "############################"

rm versions/quilt/1.20.1/*.mrpack
21 changes: 21 additions & 0 deletions update_hashes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/bash

set -e

[[ -z "$1" ]] && echo "USAGE: $0 [directory]" && exit 1
[[ ! -d $1 ]] && echo "Directory does not exist!" && exit 1

echo -e "hash-format = \"sha256\"\n" > index.toml

for mod in $1/*.pw.toml
do
echo "[*] Processing $(echo $mod | cut -d "/" -f2 | cut -d "." -f1)"

#### FORMAT ####
# [[files]]
# file = FILE_PATH
# hash = HASH
# metafile = true
###############
echo -e "[[files]]\nfile = \"$mod\"\nhash = \"$(sha256sum $mod | cut -d " " -f1)\"\nmetafile = true\n" >> index.toml
done
5 changes: 5 additions & 0 deletions versions/quilt/1.20.1/.packwizignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# .packwizignore follows the same format as .gitignore, and can be used to exclude unwanted files from pack exports
# See https://git-scm.com/docs/gitignore

# Exclude README
/README.md
151 changes: 151 additions & 0 deletions versions/quilt/1.20.1/index.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
hash-format = "sha256"

[[files]]
file = "mods/advancementinfo.pw.toml"
hash = "c85d87caffbaf83f36bd28390d997a8ef9d42fc1268d8f6d0ccf8fbfbce8caa9"
metafile = true

[[files]]
file = "mods/animatica.pw.toml"
hash = "68bd44095b0c3990c4841c724a49f6cc19f2450c2afb55746647a601ac2f9d89"
metafile = true

[[files]]
file = "mods/antighost.pw.toml"
hash = "b1f8db3b60f6fc4affb13c5c341b2b5d144641ddb1fb1e95862280c0dc749827"
metafile = true

[[files]]
file = "mods/appleskin.pw.toml"
hash = "41a5f85f4e6ba7a476031f8199228fdad422aad993d8ac45ffdb708b0a463a3c"
metafile = true

[[files]]
file = "mods/bettermounthud.pw.toml"
hash = "0ee8ac3c935b42b3683111d88f5a273e8495f89540aa2fd5d88c650753c54935"
metafile = true

[[files]]
file = "mods/betterpingdisplay.pw.toml"
hash = "df6bf67a8a2bf43846704add95b48cea2bb528686dff1db61bcf4332588c5c6f"
metafile = true

[[files]]
file = "mods/boostedbrightness.pw.toml"
hash = "80f286074fd4051eb65582de78db5dd4f0b57984eecbd3a1b6d15fb25e1ba978"
metafile = true

[[files]]
file = "mods/borderlessmining.pw.toml"
hash = "65a007636607cc24b7b5ac3431b10d58b45eda1b943a912b17ffce57e6d359ec"
metafile = true

[[files]]
file = "mods/capes.pw.toml"
hash = "45d27684b5abe22b0b98c8ed5da5d10555ede64d864477fa9eca11fe6351e692"
metafile = true

[[files]]
file = "mods/chatheads.pw.toml"
hash = "a66e7ff2e7496154bb26522b0fad15d94e131e82c2d9d256b9e0002964500605"
metafile = true

[[files]]
file = "mods/citresewn.pw.toml"
hash = "d5bc4e17293cbed6ea119a60fcf52d9295a36045c2a28c719740466e5850040d"
metafile = true

[[files]]
file = "mods/clothconfig.pw.toml"
hash = "13c440a9aedcf00a50d08d623e1bec8bd21d3c99489e4962b66b7fec8627bcce"
metafile = true

[[files]]
file = "mods/continuity.pw.toml"
hash = "5d227fccfbb7dfe88c485e1f0006f57d97ff567eec04557fb320039e4fb5ff22"
metafile = true

[[files]]
file = "mods/darkloadingscreen.pw.toml"
hash = "8e348e8f5abfd3ea9725f17aa824ed7073e84df673a767bb002168570d05784c"
metafile = true

[[files]]
file = "mods/debugify.pw.toml"
hash = "48d83d8ac06349054f84b08657ea38a92e6004d5f762ac2ca48925192857b76f"
metafile = true

[[files]]
file = "mods/dynamicfps.pw.toml"
hash = "06b89099f0b505fba58dd9f8af537efc3ae2107d3eac00f53cbeee3f76d4397d"
metafile = true

[[files]]
file = "mods/e4mc.pw.toml"
hash = "b72ba7dfef0d5afe153a0cf7308626117f2644e9339b7b44d43141285cdbb221"
metafile = true

[[files]]
file = "mods/enhancedblockentities.pw.toml"
hash = "4ca0e7ee102fd3be2b21cc5bb47109c501890aa749f9e8ab6ad6d893b4914cdd"
metafile = true

[[files]]
file = "mods/entityculling.pw.toml"
hash = "02d8931a85c93673d54757e78bd5491c4cd116c0690b5c7f6c2ff8a61aa6223e"
metafile = true

[[files]]
file = "mods/entitymodelfeatures.pw.toml"
hash = "d71ca1355118c962ae87c22ad2b2b4073fb80b0bf5da90dc4171c81e5a9a07e8"
metafile = true

[[files]]
file = "mods/fabricskyboxes.pw.toml"
hash = "b20b9f99fff85f21b5764c0c08587f2b42ff7ba861f41806395a3eb982b1aa8c"
metafile = true

[[files]]
file = "mods/fabrishot.pw.toml"
hash = "67476d4506eba31481ce67eb04c3f630053028746487b3f2db76a8414f3127ad"
metafile = true

[[files]]
file = "mods/fadeless.pw.toml"
hash = "5d32d29f9574398bced3fd33883ac928ff0b20d0133d4364ce62f2ef22437ed2"
metafile = true

[[files]]
file = "mods/fastquit.pw.toml"
hash = "ded7987cb5b32c84cf6f5015cb66c86cd6e43d19ec2fef45247be713e5e757b7"
metafile = true

[[files]]
file = "mods/ferritecore.pw.toml"
hash = "1a761a70b4208132c9db782026e3da15fe835ddabeb7600cfef33cb4b4332326"
metafile = true

[[files]]
file = "mods/modmenu.pw.toml"
hash = "63f5df759a4df29551539bb6a48d88350330792012602af244617d22c61f1943"
metafile = true

[[files]]
file = "mods/qfapi.pw.toml"
hash = "308a1acb3f3bb644ac0acb612f2d3d9512e1e4b0ec9f38909d500001f9b7da20"
metafile = true

[[files]]
file = "mods/qkl.pw.toml"
hash = "0c7dea8c1e87c686b0e05a5d372aa5d8097c4ad88a8e5064561ba21c140b8247"
metafile = true

[[files]]
file = "mods/sodium.pw.toml"
hash = "b5c99f9e922e738bcd296262429d3a023e0f79c5bfbf60ca745807eab5adfb69"
metafile = true

[[files]]
file = "mods/yetanotherconfiglib.pw.toml"
hash = "20fad007361224d9f17dab9b195cf966d048ca2aa140207368cfa74d9ef1d7c4"
metafile = true
13 changes: 13 additions & 0 deletions versions/quilt/1.20.1/mods/advancementinfo.pw.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "AdvancementInfo"
filename = "advancementinfo-1.20-fabric0.83.0-1.4.jar"
side = "client"

[download]
url = "https://cdn.modrinth.com/data/G1epq3jN/versions/gfcbMV82/advancementinfo-1.20-fabric0.83.0-1.4.jar"
hash-format = "sha256"
hash = "cb394550be72cfa2ac1e96031253d8cf3a11a81d5463af2c8ace3bcc5cb5d8d9"

[update]
[update.modrinth]
mod-id = "G1epq3jN"
version = "gfcbMV82"
13 changes: 13 additions & 0 deletions versions/quilt/1.20.1/mods/animatica.pw.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "Animatica"
filename = "animatica-0.6+1.20.jar"
side = "client"

[download]
url = "https://cdn.modrinth.com/data/PRN43VSY/versions/uNgEPb10/animatica-0.6%2B1.20.jar"
hash-format = "sha256"
hash = "cdfc6e7d48faf10e43f4072d58fbc05c842dfee7d41126db6deefdcf803cbda6"

[update]
[update.modrinth]
mod-id = "PRN43VSY"
version = "uNgEPb10"
13 changes: 13 additions & 0 deletions versions/quilt/1.20.1/mods/antighost.pw.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "AntiGhost"
filename = "antighost-1.20-fabric0.83.0-1.1.5.jar"
side = "client"

[download]
url = "https://cdn.modrinth.com/data/Jw3Wx1KR/versions/RzyN0vkk/antighost-1.20-fabric0.83.0-1.1.5.jar"
hash-format = "sha256"
hash = "8c3f882da54fd99760260bd382d8a92e40cb6beb7cfacd6110f2c8657d9707d3"

[update]
[update.modrinth]
mod-id = "Jw3Wx1KR"
version = "RzyN0vkk"
13 changes: 13 additions & 0 deletions versions/quilt/1.20.1/mods/appleskin.pw.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "AppleSkin"
filename = "appleskin-fabric-mc1.20-2.5.0.jar"
side = "client"

[download]
url = "https://cdn.modrinth.com/data/EsAfCjCV/versions/CxnVG86Y/appleskin-fabric-mc1.20-2.5.0.jar"
hash-format = "sha256"
hash = "ee9f80fdcabf43d65cb15681b206d571143d2273641e86682714386abf035055"

[update]
[update.modrinth]
mod-id = "EsAfCjCV"
version = "CxnVG86Y"
13 changes: 13 additions & 0 deletions versions/quilt/1.20.1/mods/bettermounthud.pw.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "Better Mount Hud"
filename = "bettermounthud-1.2.2.jar"
side = "client"

[download]
url = "https://cdn.modrinth.com/data/kqJFAPU9/versions/h1QpxElt/bettermounthud-1.2.2.jar"
hash-format = "sha256"
hash = "5de386555011840070dbbe7942422a8247b0b30a9d6d06d21c3c188ae53dde2f"

[update]
[update.modrinth]
mod-id = "kqJFAPU9"
version = "h1QpxElt"
13 changes: 13 additions & 0 deletions versions/quilt/1.20.1/mods/betterpingdisplay.pw.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "Better Ping Display"
filename = "BetterPingDisplay-Fabric-1.20.1-1.1.1.jar"
side = "client"

[download]
url = "https://cdn.modrinth.com/data/MS1ZMyR7/versions/FbxcDBxy/BetterPingDisplay-Fabric-1.20.1-1.1.1.jar"
hash-format = "sha256"
hash = "f9f14d7df5c6de56d7c8447b7729d724baa74f0e27b594a201af04381045ece5"

[update]
[update.modrinth]
mod-id = "MS1ZMyR7"
version = "FbxcDBxy"
13 changes: 13 additions & 0 deletions versions/quilt/1.20.1/mods/boostedbrightness.pw.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "Boosted Brightness"
filename = "boosted-brightness-2.2.0+1.20.1.jar"
side = "client"

[download]
url = "https://cdn.modrinth.com/data/Abyk2Hrg/versions/BXfGuJD0/boosted-brightness-2.2.0%2B1.20.1.jar"
hash-format = "sha256"
hash = "743e2c5c3921ce00554eb037736f4d3c7c0d2a23b0a50c13597f2cf4be0b2553"

[update]
[update.modrinth]
mod-id = "Abyk2Hrg"
version = "BXfGuJD0"
13 changes: 13 additions & 0 deletions versions/quilt/1.20.1/mods/borderlessmining.pw.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "Borderless Mining"
filename = "borderless-mining-1.1.8+1.20.1.jar"
side = "client"

[download]
url = "https://cdn.modrinth.com/data/kYq5qkSL/versions/lhrW53q7/borderless-mining-1.1.8%2B1.20.1.jar"
hash-format = "sha256"
hash = "115fcbf03eb768bab073b337798289e998f13fc62a6a997971d7ccfd02e6a56a"

[update]
[update.modrinth]
mod-id = "kYq5qkSL"
version = "lhrW53q7"
13 changes: 13 additions & 0 deletions versions/quilt/1.20.1/mods/capes.pw.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "Capes"
filename = "capes-1.5.2+1.20-fabric.jar"
side = "client"

[download]
url = "https://cdn.modrinth.com/data/89Wsn8GD/versions/z2zOEvPP/capes-1.5.2%2B1.20-fabric.jar"
hash-format = "sha256"
hash = "3e1068e2998bccb5520a229a7c28fd862367f37d52fa29108d3c71ce81549762"

[update]
[update.modrinth]
mod-id = "89Wsn8GD"
version = "z2zOEvPP"
13 changes: 13 additions & 0 deletions versions/quilt/1.20.1/mods/chatheads.pw.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "Chat Heads"
filename = "chat_heads-0.10.20-fabric-1.20.jar"
side = "client"

[download]
url = "https://cdn.modrinth.com/data/Wb5oqrBJ/versions/CJCClsCd/chat_heads-0.10.20-fabric-1.20.jar"
hash-format = "sha256"
hash = "f93de2e55fbe4fcee234a473e05cc67f57f428fe47bda84ce8ae738f011930e3"

[update]
[update.modrinth]
mod-id = "Wb5oqrBJ"
version = "CJCClsCd"
Loading

0 comments on commit 6f99550

Please sign in to comment.