From fd880ee2f8203d7ac7d4d2356fc994145182b26e Mon Sep 17 00:00:00 2001 From: Half_nothing Date: Fri, 26 Apr 2024 23:22:56 +0800 Subject: [PATCH] ci(build): Update action version from v3 to v4 * Update action version * Remove useless function `exit` in ArkHomeFX.java --- .github/workflows/build.yml | 12 ++++++------ desktop/src/cn/harryh/arkpets/ArkHomeFX.java | 4 ---- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8886e69c..13b14830 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,17 +30,17 @@ jobs: echo "Current ref: ${{ github.ref }}" - name: Clone Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup JavaJDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'liberica' cache: 'gradle' - name: Setup Gradle - uses: gradle/gradle-build-action@v2 + uses: gradle/gradle-build-action@v3 with: gradle-version: 8.1.1 @@ -48,21 +48,21 @@ jobs: run: gradle clean distAll - name: Upload Exe - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ ! startsWith(github.ref, 'refs/tags/') }} with: name: ArkPets.exe path: desktop/build/dist/*.exe - name: Upload Zip - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ ! startsWith(github.ref, 'refs/tags/') }} with: name: ArkPets.zip path: desktop/build/dist/*.zip - name: Upload Jar - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ ! startsWith(github.ref, 'refs/tags/') }} with: name: ArkPets.jar diff --git a/desktop/src/cn/harryh/arkpets/ArkHomeFX.java b/desktop/src/cn/harryh/arkpets/ArkHomeFX.java index f88438b0..36cd8df3 100644 --- a/desktop/src/cn/harryh/arkpets/ArkHomeFX.java +++ b/desktop/src/cn/harryh/arkpets/ArkHomeFX.java @@ -134,10 +134,6 @@ public void stop() { Logger.debug("Launcher", "Finished stopping"); } - public void exit() { - rootModule.exit(); - } - public void popLoading(EventHandler handler) { rootModule.popLoading(handler); }