Skip to content

Commit

Permalink
fix path not getting recognized on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
not-coded committed May 25, 2024
1 parent a3caa60 commit 49899f0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/com/nexia/installer/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ public static void main(String[] args) throws UnsupportedLookAndFeelException, C

os = OS.LINUX;

if(System.getProperty("os.name").startsWith("Windows")){
if (System.getProperty("os.name").contains("win")) {
os = OS.WINDOWS;
System.setProperty("javax.net.ssl.trustStoreType", "WINDOWS-ROOT");
}

if(System.getProperty("os.name").startsWith("mac"))
} else if (System.getProperty("os.name").contains("mac")) {
os = OS.MAC;
}

icon = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemClassLoader().getResource("icon.png"));
InstallerGUI.load();
Expand Down

0 comments on commit 49899f0

Please sign in to comment.