Skip to content

Commit

Permalink
Merge branch 'base-modtools2' into battle-modtools2
Browse files Browse the repository at this point in the history
  • Loading branch information
DBTDerpbox committed May 9, 2024
2 parents b99f357 + 0df882e commit 7ab8854
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/autoHash.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Automatically build the project and run any configured tests for every push
# and submitted pull request. This can help catch issues that only occur on
# certain platforms or Java versions, and provides a first line of defence
# against bad commits.

name: AutoHash
on: [push]

jobs:
AutoHash:

runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'

- name: Download AutoHasher
working-directory: ./.toolbox
run: curl -O https://raw.githubusercontent.com/Legacy-Edition-Minigames/ToolBox/java/testConfigs/AutoHasher.jar

- name: Hash Files
working-directory: ./.toolbox
run: java -jar AutoHasher.jar --autoHash

- name: Delete AutoHasher
working-directory: ./.toolbox
run: rm AutoHasher.jar

- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Auto generate hash for dependency files
87 changes: 87 additions & 0 deletions .toolbox/toolbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"name": "LEM Base",
"launchCMD": "java -jar <ram> <javaARGs> server.jar nogui <serverARGs>",
"dependencies": [
{
"name": "minigamesrepo.zip",
"displayName": "Legacy Edition Minigames",
"url": "https://github.com/Legacy-Edition-Minigames/Minigames/tree/base",
"location": "/",
"autoGeneratedHash": "ecf7e0732ead82f98963c460df9ecdda22fab40a",
"gitRepo": true,
"unzip": true
},
{
"name": "server.jar",
"displayName": "Minecraft Server",
"url": "https://meta.fabricmc.net/v2/versions/loader/1.20.4/0.15.11/1.0.1/server/jar",
"location": "/",
"autoGeneratedHash": "6bc203377f124c4bf6ae9b0c3d13dd18a54e9e2bb40fb6710fd1f340177f09cc",
"gitRepo": false,
"unzip": false
},
{
"name": "Fabric API.jar",
"displayName": "Fabric API",
"url": "https://cdn.modrinth.com/data/P7dR8mSH/versions/xklQBMta/fabric-api-0.97.0%2B1.20.4.jar",
"location": "/mods/",
"autoGeneratedHash": "fccc011366392540b79fb26106c447caccf9b2bdb8254e823a79e07c2edda786",
"gitRepo": false,
"unzip": false
},
{
"name": "Carpet.jar",
"displayName": "Carpet",
"url": "https://cdn.modrinth.com/data/TQTTVgYE/versions/yYzR60Xd/fabric-carpet-1.20.3-1.4.128%2Bv231205.jar",
"location": "/mods/",
"autoGeneratedHash": "d8e5cf2184848fd78d482f23554ed814db2094acd37fab62d8ce7379d3ba02ca",
"gitRepo": false,
"unzip": false
},
{
"name": "Server Utils.jar",
"displayName": "Server Utils",
"url": "https://github.com/Legacy-Edition-Minigames/Server-Utils/releases/download/1.0.8/ServerUtils-1.0.8b11-1.20.4.jar",
"location": "/mods/",
"autoGeneratedHash": "dc2f2319a64cf2dc183831733fc60ca63c11d609d5de6a9c7125c7d9c87b9512",
"gitRepo": false,
"unzip": false
},
{
"name": "Lithium.jar",
"displayName": "Lithium",
"url": "https://cdn.modrinth.com/data/gvQqBUqZ/versions/nMhjKWVE/lithium-fabric-mc1.20.4-0.12.1.jar",
"location": "/mods/",
"autoGeneratedHash": "6acd49595ee69e1264cfc79898f569452e41bd66985467fcb38d2804191af3cd",
"gitRepo": false,
"unzip": false
},
{
"name": "Mini MOTD.jar",
"displayName": "Mini MOTD",
"url": "https://cdn.modrinth.com/data/16vhQOQN/versions/M7WdzIda/minimotd-fabric-mc1.20.4-2.1.0.jar",
"location": "/mods/",
"autoGeneratedHash": "b4ec9ebafa1e7b16e9f0da3e64709274aeeb9297fb680a3425b3eb429e8a1aae",
"gitRepo": false,
"unzip": false
},
{
"name": "No Chat Reports.jar",
"displayName": "No Chat Reports",
"url": "https://cdn.modrinth.com/data/qQyHxfxd/versions/Pjto4zdj/NoChatReports-FABRIC-1.20.4-v2.6.1.jar",
"location": "/mods/",
"autoGeneratedHash": "777108986c485f4020d42ebdf21b4442e3ea67a0cc0043994b5bea9dd5c16474",
"gitRepo": false,
"unzip": false
},
{
"name": "Styled Player List.jar",
"displayName": "Styled Player List",
"url": "https://cdn.modrinth.com/data/DQIfKUHf/versions/jcLxMRaH/styledplayerlist-3.3.0%2B1.20.3.jar",
"location": "/mods/",
"autoGeneratedHash": "7e10c97efdf0859d47f7ef30b6df80ef4401b77694a4012d4873cb9a919485a9",
"gitRepo": false,
"unzip": false
}
]
}

0 comments on commit 7ab8854

Please sign in to comment.