From 1e02a6f5130bacdbadc6fced58db32a45c9d7b64 Mon Sep 17 00:00:00 2001 From: Rhys <98863820+rhysdh540@users.noreply.github.com> Date: Sat, 9 Mar 2024 20:13:36 +0700 Subject: [PATCH] not again workflow :( --- .github/workflows/build.yml | 5 ++++- buildSrc/src/main/java/JarPostProcessorPlugin.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 68b08cc..4ddbb06 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,10 @@ jobs: cache-read-only: false - name: do the build - run: .\gradlew.bat clean assemble squishJar + run: .\gradlew.bat assemble + + - name: squishy + run: .\gradlew.bat squishJar - name: upload artifacts uses: actions/upload-artifact@v4 diff --git a/buildSrc/src/main/java/JarPostProcessorPlugin.java b/buildSrc/src/main/java/JarPostProcessorPlugin.java index 59869d5..ead3fd7 100644 --- a/buildSrc/src/main/java/JarPostProcessorPlugin.java +++ b/buildSrc/src/main/java/JarPostProcessorPlugin.java @@ -146,7 +146,7 @@ private static int getBootstrapInsnIndex(MethodNode node) { if(!(node.instructions.get(i + 3) instanceof InsnNode)) continue; AbstractInsnNode insn = node.instructions.get(i + 2); if(insn instanceof MethodInsnNode methodInsn) { - //target + //target static { IBootstrap.dasBoot(); } if(methodInsn.name.equals("dasBoot") && methodInsn.owner.equals("manifold/rt/api/IBootstrap") && methodInsn.desc.equals("()Z") && methodInsn.getOpcode() == Opcodes.INVOKESTATIC) { return i;