Merge pull request #2189 from cryptomator/feature/on-the-fly-license

Generate app license on release/ installer build and remove commited third party file
This commit is contained in:
Armin Schrenk
2022-04-27 13:05:53 +02:00
committed by GitHub
15 changed files with 131 additions and 221 deletions

View File

@@ -29,10 +29,10 @@ public class AboutController implements FxController {
}
private static String loadThirdPartyLicenseFile() {
try (InputStream in = AboutController.class.getResourceAsStream("/license/THIRD-PARTY.txt")) {
try (InputStream in = AboutController.class.getResourceAsStream("/THIRD-PARTY.txt")) {
return CharStreams.toString(new InputStreamReader(in));
} catch (IOException | NullPointerException e) {
LOG.error("Failed to load /license/THIRD-PARTY.txt", e);
LOG.error("Failed to load /THIRD-PARTY.txt", e);
return "";
}
}