PolyMC Metadata generation scripts

Lenny McLennington c38408fe5b Merge pull request #21 from 62832/master 6 miesięcy temu
caches b0810ce299 chore: drop seemingly unused enumerateForge.py 2 lat temu
config 799d5c3b85 refactor: move GIT_SSH_COMMAND into local config 2 lat temu
docker 7b08c714c8 chore: Don't mix string and array in argument 2 lat temu
meta d370003353 Add better handling of the two bad legacy versions 7 miesięcy temu
public dc6dc8c496 fix: add public directory 2 lat temu
static 664e612ab0 fix: add WoA to rules for LWJGL 3.3.1 1 rok temu
.dockerignore 72029d6f0d feat: add initial Quilt support 2 lat temu
.gitignore 05b6144203 Add NeoForge support 7 miesięcy temu
COPYING d2e7987142 Add MS-PL license 10 miesięcy temu
Dockerfile f9fc6c02d1 fix: update dependencies 2 lat temu
README.md f6175f1983 chore: Remove old README instructions 2 lat temu
clone.sh beac3155df chore: Double quote to prevent globbing and word splitting 2 lat temu
config.sh 651e432daf fix: use deploy paths in container 2 lat temu
docker-compose.local.yaml 1dce769555 fix: mount everything into container 2 lat temu
docker-compose.yaml 64e57494b3 fix(docker): add restart to default docker-compose.yaml 2 lat temu
generateFabric.py 6d39c8dfe9 refactor: cleanup 2 lat temu
generateForge.py 69607f2baa oops 9 miesięcy temu
generateLiteloader.py 7ab37c8658 refactor: make GradleSpecifier its own class 2 lat temu
generateMojang.py fbfccc9e40 update lwjgl variants 6 miesięcy temu
generateNeoforge.py 71e476dcd5 Add legacy 1.20.1 versions, remove separate hashes dir 7 miesięcy temu
generateQuilt.py 11138a271f fix: only recommend stable Quilt versions 2 lat temu
index.py 031d271d62 chore: Remove unused imports 2 lat temu
status.sh 67303c5463 chore: Use `pushd/popd ... || exit` in case pushd/popd fails 2 lat temu
update.sh 05b6144203 Add NeoForge support 7 miesięcy temu
updateFabric.py 07b05bd815 refactor: remove unused metadata 2 lat temu
updateForge.py c8fa8f4125 chore: Remove argument when equal to default parameter value 2 lat temu
updateLiteloader.py fe4269cb12 fix: ensure base directory of liteloader exists 2 lat temu
updateMojang.py 51cdb9b0c4 fix: workaround Mojang forgetting to change all URLs 2 lat temu
updateNeoforge.py e51ab78cdf Temporarily fix metadata not being generated for new major versions (e.g. 1.21) 6 miesięcy temu
updateQuilt.py f7138b416b fix: add debug output for Quilt meta 1 rok temu

README.md

PolyMC Meta

Scripts to generate jsons and jars that PolyMC will access.

Deployment

It is recommended to use Docker to deploy the environment.

  • Clone this repo to a server
  • Make sure it's writable by the container later: chown -R 1337:1337 .
  • Configure config/config_local.sh
    • The defaults should be fine (apart from committer email and name perhaps)
  • Put your SSH key (which has push access to meta-upstream and meta-polymc) at config/deploy.key
  • Pull meta- repos: bash clone.sh
  • Customize docker-compose.yaml
  • Run docker-compose up -d --build
  • Observe Cron logs using docker-compose logs -f (Runs hourly by default)
  • (Optional) Run once to fill caches: docker-compose run meta update

For local development you can also use docker-compose.local.yaml. By default it uses UID=1000 and GID=1000. Make sure it's the same as your host instance.