Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Update ui.zip to content.zip
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldieeins committed Apr 28, 2024
1 parent d26f5c1 commit c3dd1df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application-main/src/main/java/com/zyneonstudios/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ private static boolean update() {
new File(getDirectoryPath() + "libs/zyneon/instances.json").delete();
logger.log("[MAIN] Deleted old user interface files: " + new File(getDirectoryPath() + "libs/zyneon/").mkdirs());
logger.log("[MAIN] Created new user interface extraction folder: " + new File(getDirectoryPath() + "temp/ui/").mkdirs());
FileUtil.extractResourceFile("ui.zip",getDirectoryPath()+"temp/ui.zip",Main.class);
FileUtil.unzipFile(getDirectoryPath()+"temp/ui.zip", getDirectoryPath() + "temp/ui");
logger.log("[MAIN] Deleted user interface archive: " + new File(getDirectoryPath()+"temp/ui.zip").delete());
FileUtil.extractResourceFile("content.zip",getDirectoryPath()+"temp/content.zip",Main.class);
FileUtil.unzipFile(getDirectoryPath()+"temp/content.zip", getDirectoryPath() + "temp/ui");
logger.log("[MAIN] Deleted user interface archive: " + new File(getDirectoryPath()+"temp/content.zip").delete());
updated = true;
} catch (Exception e) {
logger.error("[MAIN] Couldn't update application user interface: "+e.getMessage());
Expand Down
Binary file not shown.

0 comments on commit c3dd1df

Please sign in to comment.