Skip to content

Commit

Permalink
Prism/Modrinth pack gen
Browse files Browse the repository at this point in the history
  • Loading branch information
techno-sam committed Apr 6, 2024
1 parent 18e89af commit c2338cf
Show file tree
Hide file tree
Showing 9 changed files with 115 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@

# Exclude exported Modrinth modpacks
*.mrpack

output/
8 changes: 7 additions & 1 deletion .packwizignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
unsup/
prism/
scripts/
output/
.github/
README.md
packwiz.ini
unsup.ini
File renamed without changes.
7 changes: 7 additions & 0 deletions prism/instance.cfg
Original file line number Diff line number Diff line change
@@ -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
51 changes: 51 additions & 0 deletions prism/mmc-pack.json
Original file line number Diff line number Diff line change
@@ -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
}
Binary file added prism/railways_test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions scripts/prism.sh
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.

0 comments on commit c2338cf

Please sign in to comment.