From 39ec3cc6e8406d69b97c2dbae76132c288c024a4 Mon Sep 17 00:00:00 2001 From: adtpdn Date: Wed, 22 Apr 2026 04:25:21 +0800 Subject: [PATCH] feat : edit build --- .github/workflows/deploy_patch.yml | 2 +- tools/build_patch.gd | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy_patch.yml b/.github/workflows/deploy_patch.yml index 4012920..d47f9a0 100644 --- a/.github/workflows/deploy_patch.yml +++ b/.github/workflows/deploy_patch.yml @@ -28,7 +28,7 @@ jobs: - name: Setup Godot uses: chickensoft-games/setup-godot@v1 with: - version: '4.2.1' + version: '4.6' use-dotnet: false - name: Run Build Patch Script diff --git a/tools/build_patch.gd b/tools/build_patch.gd index a6a0ab8..8d5de6a 100644 --- a/tools/build_patch.gd +++ b/tools/build_patch.gd @@ -1,7 +1,7 @@ #!/usr/bin/env -S godot --headless -s -extends SceneTree +extends MainLoop -func _init(): +func _initialize(): print("--- Starting Automated Patch Build ---") var output_file = "patch.pck" @@ -51,4 +51,5 @@ func _init(): pck_packer.flush(true) print("--- Patch Build Complete! Packed %d files into %s ---" % [count + 1, output_file]) - quit(0) +func _process(_delta: float) -> bool: + return true # True tells Godot to gracefully shut down the engine now!