Skip to content

Commit

Permalink
Build modpack with Packwiz
Browse files Browse the repository at this point in the history
  • Loading branch information
Gegy committed Nov 19, 2024
1 parent 520b28c commit 6c0159a
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Disable Git line ending conversion, to prevent packwiz index hashes changing when committing from Windows
* -text
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build with Packwiz

on:
push:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
- run: go install github.com/packwiz/packwiz@latest

- name: Build Modrinth Modpack
run: |
packwiz modrinth export
shell: bash

- name: Build CurseForge Modpack
run: |
packwiz curseforge export
shell: bash

- uses: actions/upload-artifact@v4
with:
name: Modrinth Pack
path: |
*.mrpack
- uses: actions/upload-artifact@v4
with:
name: CurseForge Pack
path: |
*.zip
2 changes: 1 addition & 1 deletion .github/workflows/zip-modpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: modpack
path: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ panorama.dat
icon.png
usernamecache.json
usercache.json

# Workspace
.idea/
3 changes: 3 additions & 0 deletions .packwizignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Workspace
.github/
.idea/
21 changes: 21 additions & 0 deletions index.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
hash-format = "sha256"

[[files]]
file = "config/simple-rpc/server-entries.toml"
hash = "8df93f32e1e331a11a5119038d148ee4fd4e2b8bb748242815eb4203398fc2a1"

[[files]]
file = "config/simple-rpc/simple-rpc.toml"
hash = "dd2d90432f7449abccac3369a92a91553fbe00a6f1ed5e5a77a3da5e87a3f2ca"

[[files]]
file = "mods/serverpacklocator.jar"
hash = "a1ead3d00a8affce33f12c55f0cb354b988b5c4a34858fb3e7956d13e6a80ebe"

[[files]]
file = "options.txt"
hash = "2ea7f0ac940c148cf93c362f009fc96ce7eae33914127c10d123b91a24b18dec"

[[files]]
file = "servermods/serverpacklocator.toml"
hash = "7b12a9835c3ddabf77938bab979c076a657c39f9eefbcbb1d3bc641674c88c5e"
2 changes: 1 addition & 1 deletion options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ simulationDistance:12
entityDistanceScaling:1.0
guiScale:0
particles:0
maxFps:120
maxFps:80
graphicsMode:1
ao:true
prioritizeChunkUpdates:0
Expand Down
13 changes: 13 additions & 0 deletions pack.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "Love Tropics 2024"
author = "The Love Tropics Team"
version = "1.0.0"
pack-format = "packwiz:1.1.0"

[index]
file = "index.toml"
hash-format = "sha256"
hash = "fc612a0e7bd24e1402b190d56d4b434f87d012724ecb0e295ecc1ca4816d29fc"

[versions]
minecraft = "1.21.1"
neoforge = "21.1.77"

0 comments on commit 6c0159a

Please sign in to comment.