Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
export to dir
naming
  • Loading branch information
zeruth committed Dec 6, 2023
1 parent 2d57d5b commit 85eb0fd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions runelite-client/src/main/java/net/runelite/client/Export.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package net.runelite.client;

import net.runelite.http.api.RuneLiteAPI;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;

public class Export {
public static void main(String[] args) throws IOException {
File apiJar = new File("./runelite-api/target/runelite-api-" + RuneLiteProperties.getVersion() + ".jar");
File clientJar = new File("./runelite-client/target/client-" + RuneLiteProperties.getVersion() + ".jar");
File hotliteDir = new File(System.getProperty("user.home") + "/.runelite/hotlite/" + RuneLiteProperties.getVersion() + "/");

File targetApiJar = new File(hotliteDir, "runelite-api-" + RuneLiteProperties.getVersion() + ".jar");
File targetClientJar = new File(hotliteDir, "client-" + RuneLiteProperties.getVersion() + ".jar");
if (apiJar.exists() && clientJar.exists()) {
hotliteDir.mkdirs();
Files.copy(apiJar.toPath(), targetApiJar.toPath(), StandardCopyOption.REPLACE_EXISTING);
Files.copy(clientJar.toPath(), targetClientJar.toPath(), StandardCopyOption.REPLACE_EXISTING);
System.out.println("Success");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ private ClientUI(
this.clientThreadProvider = clientThreadProvider;
this.eventBus = eventBus;
this.safeMode = safeMode;
title = "HotLite";
this.title = title + (safeMode ? " (safe mode)" : "");
}

Expand Down

0 comments on commit 85eb0fd

Please sign in to comment.