diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a2ab30c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Release + +on: [workflow_dispatch] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: "1.22.1" + check-latest: true + cache: false # Not a go project, we abuse this to install packwiz + + - name: Install Packwiz + run: go install github.com/packwiz/packwiz@latest + + - name: Export Prism Pack + run: ./scripts/prism.sh + + - name: Capture Prism Pack + uses: actions/upload-artifact@v4 + with: + name: Artifacts + path: output diff --git a/.gitignore b/.gitignore index 920ec13..ee72675 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ # Exclude exported Modrinth modpacks *.mrpack + +output/ diff --git a/.packwizignore b/.packwizignore index 040d51a..e6ae8dd 100644 --- a/.packwizignore +++ b/.packwizignore @@ -1 +1,7 @@ -unsup/ +prism/ +scripts/ +output/ +.github/ +README.md +packwiz.ini +unsup.ini diff --git a/unsup/unsup-0.2.3.jar b/prism/.minecraft/unsup.jar similarity index 100% rename from unsup/unsup-0.2.3.jar rename to prism/.minecraft/unsup.jar diff --git a/prism/instance.cfg b/prism/instance.cfg new file mode 100644 index 0000000..d3eae6c --- /dev/null +++ b/prism/instance.cfg @@ -0,0 +1,7 @@ +[General] +ConfigVersion=1.2 +JvmArgs=-javaagent:unsup.jar +OverrideJavaArgs=true +MCLaunchMethod=LauncherPart +iconKey=railways_test +name=1.20 SnR and Numismatics Testing diff --git a/prism/mmc-pack.json b/prism/mmc-pack.json new file mode 100644 index 0000000..aea4844 --- /dev/null +++ b/prism/mmc-pack.json @@ -0,0 +1,51 @@ +{ + "components": [ + { + "cachedName": "LWJGL 3", + "cachedVersion": "3.3.1", + "cachedVolatile": true, + "dependencyOnly": true, + "uid": "org.lwjgl3", + "version": "3.3.1" + }, + { + "cachedName": "Minecraft", + "cachedRequires": [ + { + "suggests": "3.3.1", + "uid": "org.lwjgl3" + } + ], + "cachedVersion": "1.20.1", + "important": true, + "uid": "net.minecraft", + "version": "1.20.1" + }, + { + "cachedName": "Intermediary Mappings", + "cachedRequires": [ + { + "equals": "1.20.1", + "uid": "net.minecraft" + } + ], + "cachedVersion": "1.20.1", + "cachedVolatile": true, + "dependencyOnly": true, + "uid": "net.fabricmc.intermediary", + "version": "1.20.1" + }, + { + "cachedName": "Fabric Loader", + "cachedRequires": [ + { + "uid": "net.fabricmc.intermediary" + } + ], + "cachedVersion": "0.15.9", + "uid": "net.fabricmc.fabric-loader", + "version": "0.15.9" + } + ], + "formatVersion": 1 +} diff --git a/prism/railways_test.png b/prism/railways_test.png new file mode 100644 index 0000000..d372de3 Binary files /dev/null and b/prism/railways_test.png differ diff --git a/scripts/prism.sh b/scripts/prism.sh new file mode 100755 index 0000000..a94d4fc --- /dev/null +++ b/scripts/prism.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Create output folder +mkdir -p output/ + +# Create .minecraft folder +mkdir -p prism/.minecraft/ + +# Copy unsup.ini & unsup.jar to prism/.minecraft +cp unsup.ini prism/.minecraft/ + +# cd to prism folder +cd prism/ || exit + +# Zip it up and place it in output folder +zip -r ../output/TestingPrismPack.zip . + +# Delete unsup.ini +rm .minecraft/unsup.ini diff --git a/unsup/unsup.ini b/unsup.ini similarity index 100% rename from unsup/unsup.ini rename to unsup.ini