Skip to content
This repository was archived by the owner on Aug 30, 2026. It is now read-only.

Commit a484d8f

Browse files
committed
fix”
1 parent 195ce77 commit a484d8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
mkdir -p "$PATCH_DIR"
7373
cd "$PATCH_DIR"
7474
jar xf "$RFG_JAR" com/gtnewhorizons/retrofuturagradle/mcp/DecompileTask.class
75-
node -e 'const fs = require("fs"); const path = "com/gtnewhorizons/retrofuturagradle/mcp/DecompileTask.class"; const oldValue = Buffer.from("-XX:+AggressiveOpts"); const newValue = Buffer.from("-XX:+AlwaysPreTouch"); let data = fs.readFileSync(path); const index = data.indexOf(oldValue); if (index < 0) throw new Error("RFG DecompileTask no longer contains -XX:+AggressiveOpts"); newValue.copy(data, index); fs.writeFileSync(path, data);'
75+
node -e 'const fs = require("fs"); const path = "com/gtnewhorizons/retrofuturagradle/mcp/DecompileTask.class"; const oldValue = Buffer.from("-XX:+AggressiveOpts"); const newValue = Buffer.from("-XX:+AlwaysPreTouch"); let data = fs.readFileSync(path); const oldIndex = data.indexOf(oldValue); if (oldIndex >= 0) { newValue.copy(data, oldIndex); fs.writeFileSync(path, data); console.log("Patched RFG DecompileTask JVM argument."); process.exit(0); } if (data.indexOf(newValue) >= 0) { console.log("RFG DecompileTask JVM argument is already patched."); process.exit(0); } throw new Error("RFG DecompileTask contains neither -XX:+AggressiveOpts nor -XX:+AlwaysPreTouch");'
7676
jar uf "$RFG_JAR" com/gtnewhorizons/retrofuturagradle/mcp/DecompileTask.class
7777
7878
- name: 清理 RFG 反编译缓存

0 commit comments

Comments
 (0)