From 69da6994a8b601f23893b472360f62e422ac859d Mon Sep 17 00:00:00 2001
From: amyavi <144570677+amyavi@users.noreply.github.com>
Date: Wed, 12 Mar 2025 19:57:30 -0300
Subject: [PATCH 1/3] ci: update runner to ubuntu 24.04

---
 .github/workflows/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 29ed79f..d7c8566 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -10,7 +10,7 @@ permissions:
 jobs:
   update:
     if: github.repository == 'kaboomserver/server' || github.event_name == 'workflow_dispatch'
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-24.04
 
     steps:
     - uses: actions/checkout@v3

From 7ab9053a3bc01aef91ef53b36c5b14bae5d43243 Mon Sep 17 00:00:00 2001
From: amyavi <144570677+amyavi@users.noreply.github.com>
Date: Wed, 12 Mar 2025 19:59:35 -0300
Subject: [PATCH 2/3] fix: use weird regex escaping for ignite asset

---
 scripts/downloads.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/downloads.json b/scripts/downloads.json
index a13976e..b6c45bd 100644
--- a/scripts/downloads.json
+++ b/scripts/downloads.json
@@ -2,7 +2,7 @@
     "server.jar": {
         "type": "github",
         "repo": "vectrix-space/ignite",
-        "asset": "ignite\\.jar"
+        "asset": "ignite[.]jar"
     },
     "paper.jar": {
         "type": "bibliothek",

From 0f63164eabaed1b0dc10ca2f9384db7b4bcc5d9c Mon Sep 17 00:00:00 2001
From: amyavi <144570677+amyavi@users.noreply.github.com>
Date: Wed, 12 Mar 2025 20:08:55 -0300
Subject: [PATCH 3/3] fix: pass fetch output directly to jq

---
 scripts/_sources/_bibliothek.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/scripts/_sources/_bibliothek.sh b/scripts/_sources/_bibliothek.sh
index 20be5f1..a264829 100644
--- a/scripts/_sources/_bibliothek.sh
+++ b/scripts/_sources/_bibliothek.sh
@@ -4,16 +4,14 @@
 
 _fetch_latest_build() {
     builds_url="$1/builds"
-
     debug "fetch: $builds_url"
-    BUILD_JSON="$(fetch -so- "$builds_url")"
 
     # We have to read the variables like this because POSIX read
     # doesn't support reading multiple variables at a time
     for var in LATEST_BUILD LATEST_BUILD_FILENAME; do
         read -r "${var?}"
     done <<FETCH_LATEST_BUILD_HEREDOC
-$(echo "$BUILD_JSON" \
+$(fetch -so- "$builds_url" \
     | jq --raw-output --exit-status '.builds[-1] | "\(.build)\n\(.downloads?.application?.name)"')
 FETCH_LATEST_BUILD_HEREDOC
 }