aboutsummaryrefslogtreecommitdiff
path: root/switch
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2021-12-27 15:24:28 -0800
committerTrumeet <yuuta@yuuta.moe>2021-12-27 15:24:28 -0800
commitfb84e0168c2f8be9f33af87547e961e4e8944828 (patch)
tree4aedc075e5a6c723e6113f2bb40d45745f9d9e45 /switch
parent5d004c12d05bf6aba067c194acc7f8ab5f0af62f (diff)
downloadminecraft-pacman-fb84e0168c2f8be9f33af87547e961e4e8944828.tar
minecraft-pacman-fb84e0168c2f8be9f33af87547e961e4e8944828.tar.gz
minecraft-pacman-fb84e0168c2f8be9f33af87547e961e4e8944828.tar.bz2
minecraft-pacman-fb84e0168c2f8be9f33af87547e961e4e8944828.zip
Initial Fabric support
Diffstat (limited to 'switch')
-rwxr-xr-xswitch5
1 files changed, 5 insertions, 0 deletions
diff --git a/switch b/switch
index 41fa57b..8c6d833 100755
--- a/switch
+++ b/switch
@@ -1,6 +1,11 @@
#!/bin/sh
+set -e
if test -z "$1"; then
echo "Usage: switch <Minecraft version>"
fi
cc -D_POSIX_C_SOURCE=200809L -std=c99 -ljson-c -lcurl -o gen gen.c
./gen -v "$1"
+#FABRIC_VERSION=$(curl -s "https://meta.fabricmc.net/v2/versions/loader" | jq -r ".[0].version")
+#./gen -m "https://meta.fabricmc.net/v2/versions/loader/$1/$FABRIC_VERSION/profile/json" -c -o PKGBUILD.fabric.gen -O launcher.fabric.gen
+#echo "_FABRIC_ID=\"$FABRIC_VERSION\"" >> PKGBUILD.fabric.gen
+#sed -i "/^ID.*$/d" launcher.fabric.gen