From 710eb72dd8eb165a471d2178687a64bc46bc5aa5 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Tue, 11 Jun 2024 00:42:21 +0200 Subject: [PATCH] the issue was proguard not knowing what obfuscated minecraft looks like. --- .forgejo/workflows/build-client.yml | 8 +++++--- .run/BaseBandRewrite [build-full].run.xml | 3 ++- Client/build.gradle | 12 ++++++++++-- Client/proguard/proguard.cfg | 19 ++----------------- .../com/baseband/client/gui/GuiRewrite.java | 3 +++ push_local.sh | 2 +- 6 files changed, 23 insertions(+), 24 deletions(-) diff --git a/.forgejo/workflows/build-client.yml b/.forgejo/workflows/build-client.yml index 4b5d165..a7434c7 100644 --- a/.forgejo/workflows/build-client.yml +++ b/.forgejo/workflows/build-client.yml @@ -26,7 +26,9 @@ jobs: run: ./gradlew Client:build - name: Obfuscate Broadway if: github.ref == 'refs/heads/release' - run: bash mobf.sh Client/build/libs/BaseBand-Broadway.jar + run: | + ./gradlew Client:proguardRelease + bash mobf.sh Client/build/proguard/BaseBand-Broadway.jar - name: Upload DSM uses: forgejo/upload-artifact@v4 @@ -38,7 +40,7 @@ jobs: uses: forgejo/upload-artifact@v4 with: name: BaseBand-Broadway.jar - path: Client/build/libs/BaseBand-Broadway.jar + path: Client/build/proguard/BaseBand-Broadway.jar - name: Release to server if: github.ref == 'refs/heads/release' env: @@ -47,5 +49,5 @@ jobs: BB_HOST: ${{ vars.BB_HOST }} BB_PORT: ${{ vars.BB_PORT }} BB_PATH: ${{ vars.BB_PATH }} - run: bash push_file.sh Client/build/libs/BaseBand-Broadway.jar 3849 + run: bash push_file.sh Client/build/proguard/BaseBand-Broadway.jar 3849 diff --git a/.run/BaseBandRewrite [build-full].run.xml b/.run/BaseBandRewrite [build-full].run.xml index 3ac213b..9715e06 100644 --- a/.run/BaseBandRewrite [build-full].run.xml +++ b/.run/BaseBandRewrite [build-full].run.xml @@ -35,7 +35,8 @@