Skip to content

Commit

Permalink
Support new swing companion app
Browse files Browse the repository at this point in the history
  • Loading branch information
tth05 committed Jun 16, 2021
1 parent 518555b commit dfabcbc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ jobs:
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- Log files for companion app
- Improved reference search speed
- Added support to view reference search results in companion app
- JEI Integration for decompile keybind
- New companion app support
draft: false
prerelease: false
- name: Upload jars to release
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'com.github.johnrengelman.shadow'

group = 'com.github.minecraft_ta'
version = '1.2.0'
version = '1.3.0'
archivesBaseName = 'TotalDebug'

sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void setup() {
}

public void openGui(Class<?> clazz) {
openGui(clazz, 0);
openGui(clazz, 1);
}

public void openGui(Class<?> clazz, int line) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class TotalDebug {

public static final String MOD_ID = "total_debug";
public static final String MOD_NAME = "TotalDebug";
public static final String VERSION = "1.2.0";
public static final String VERSION = "1.3.0";

@Mod.Instance(MOD_ID)
public static TotalDebug INSTANCE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void startAndConnect() {
if (!isRunning()) {
this.metafile.loadNewestCompanionAppVersion();

Path exePath = this.appDir.resolve("TotalDebugCompanion.exe");
Path exePath = this.appDir.resolve("TotalDebugCompanion.jar");

if (!Files.exists(exePath) ||
!this.metafile.currentCompanionAppVersion.equals(this.metafile.newestCompatibleCompanionAppVersion)) {
Expand Down Expand Up @@ -307,11 +307,13 @@ private void startApp() {
return;

//TODO: linux
Path exePath = this.appDir.resolve("TotalDebugCompanion.exe");
Path exePath = this.appDir.resolve("TotalDebugCompanion.jar");
Path logFile = createLogFile();

try {
ProcessBuilder processBuilder = new ProcessBuilder(
this.appDir.resolve("bin").resolve("java.exe").toAbsolutePath().toString(),
"-jar",
exePath.toAbsolutePath().toString(),
"\"" + this.appDir.getParent().resolve(DecompilationManager.DECOMPILED_FILES_FOLDER).toAbsolutePath() + "\""
);
Expand Down

0 comments on commit dfabcbc

Please sign in to comment.