1
0
mirror of https://github.com/GeyserMC/GeyserOptionalPack.git synced 2026-01-06 15:41:55 +00:00

Java compiler for GeyserOptionalPack (#65)

* inital commit

* i think pr is ready now

* wait now its ready

* Update copyright year

* add license to each file

* Update pack version

* copy license / mojang disclaimer to pack

* Update mojang.md

* test actions

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update .gitignore

* clean up some code

* change "extracting" to copying

* Update build.yml

* Add new compilation instructions

* update developer documentation for new compiler

* make some code more readable

* some more code cleanup

* Code cleanup and tweaks

* Move to gradle action for running

* Cleanup run folder

* Update build action to use run folder

* Lets not bother with the run folder

* Download the specified version from mojang

* Remove old run folder

---------

Co-authored-by: rtm516 <ryantmilner@hotmail.co.uk>
This commit is contained in:
LetsGoAway
2025-08-28 07:03:07 +08:00
committed by GitHub
parent 1f9be92e16
commit ddf7cbcf01
95 changed files with 2432 additions and 1033 deletions

View File

@@ -13,32 +13,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
# See https://github.com/actions/checkout/commits
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Setup Gradle
uses: GeyserMC/actions/setup-gradle-composite@master
with:
setup-java_java-version: 21
- name: Install ImageMagick
run: sudo apt install -y imagemagick
- name: Prepare pack
run: bash prepare_pack.sh
- name: Zip pack
run: zip GeyserOptionalPack.mcpack -r . -x ".*" required_files.txt prepare_pack.sh
- name: Archive artifacts
- name: Build and run with Gradle
run: ./gradlew run
- name: Archive resource pack artifact
# See https://github.com/actions/upload-artifact/commits
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
if: success()
with:
name: GeyserOptionalPack
path: GeyserOptionalPack.mcpack
- name: Get Version
if: ${{ success() && github.repository == 'GeyserMC/GeyserOptionalPack' && github.ref_name == 'master' }}
id: get-version
run: |
version=$(cat manifest.json | jq -r '.header.version | join(".")')
version=$(cat src/main/resources/optionalpack/manifest.json | jq -r '.header.version | join(".")')
echo "VERSION=${version}" >> $GITHUB_OUTPUT
- name: Get Release Metadata