Skip to content

Commit

Permalink
More fixes for mac installer in gatekeeper.
Browse files Browse the repository at this point in the history
  • Loading branch information
shannah committed Jan 15, 2022
1 parent b2e2809 commit 3e26871
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,9 @@ public static void main(String[] args) {
EventQueue.invokeLater(new Main());
}


private File cachedInstallFilesDir;
private File findInstallFilesDir() {
if (cachedInstallFilesDir != null && cachedInstallFilesDir.exists()) return cachedInstallFilesDir;
System.out.println("findInstallFilesDir():");
if (System.getProperty("client4j.launcher.path") != null) {
System.out.println("Found client4.launcher.path property: "+System.getProperty("client4j.launcher.path"));
Expand All @@ -290,7 +291,8 @@ private File findInstallFilesDir() {
System.out.println("client4j.launcher.path is not set");
}
System.out.println("User dir: "+new File(System.getProperty("user.dir")).getAbsolutePath());
return findInstallFilesDir(new File(System.getProperty("user.dir")));
cachedInstallFilesDir = findInstallFilesDir(new File(System.getProperty("user.dir")));
return cachedInstallFilesDir;
}

private File findAppBundle() {
Expand Down

0 comments on commit 3e26871

Please sign in to comment.