diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a8dce01..a7cbb2d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,10 @@ jobs: - name: Execute Gradle build run: ./gradlew setupDecompWorkspace clean build --refresh-dependencies - - name: Install and Build Final Jar + - name: Obfuscating Jar + working-directory: ./autobuilder + run: java -jar obfuscator.jar --jarIn ../build/libs/client-1.8.9.jar --jarOut ./jars/Client.jar --scriptFile obfuscationScript.js --config config + + - name: Building Jar with Libraries working-directory: ./autobuilder run: npm install && LOGIN=${{ secrets.LOGIN }} PASSWORD=${{ secrets.PASSWORD }} node index --version 1.8.9 --branch ${{ steps.branch-name.outputs.current_branch }} --commit ${{ steps.commit.outputs.short }} diff --git a/autobuilder/index.js b/autobuilder/index.js index f93654d..e8e8c24 100644 --- a/autobuilder/index.js +++ b/autobuilder/index.js @@ -45,7 +45,7 @@ async function build() { `Silent Client AutoBuilder (MC Version: ${version}, branch: ${branch})` ); console.log("Checking Jars"); - if (!fs.existsSync(`../build/libs/client-${version}.jar`)) { + if (!fs.existsSync(`./jars/Client.jar`)) { console.error("JAR file does not exist."); return; }