-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
export to dir naming
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
runelite-client/src/main/java/net/runelite/client/Export.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters