Skip to content

Commit

Permalink
-Publish version 3.7 (updated)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastien committed Jan 18, 2023
1 parent 235b68a commit de6a2cf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Binary file modified Build/MyPasswordManager.jar
Binary file not shown.
Binary file modified Build/MyPasswordManagerLauncher.jar
Binary file not shown.
Binary file modified lib/GitHubServer-2.4.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@

public class MyPasswordManagerVersion {

private static final String VERSION_FILE = "MyPasswordManagerVersion.txt";

public static String getLocalVersion() {
// In directory bin
File versionFile = new File("MyPasswordManagerVersion.txt");
File versionFile = new File(VERSION_FILE);
if (versionFile.exists()) {
try(var bufferReader = new BufferedReader(new FileReader(versionFile)))
{
try (var bufferReader = new BufferedReader(new FileReader(versionFile))) {
return bufferReader.readLine();
} catch (IOException e) {
e.printStackTrace();
Expand All @@ -25,7 +26,7 @@ public static String getLocalVersion() {
}

public static void setLocalVersion(String version) {
File f = new File("MyPasswordManagerVersion.txt");
File f = new File(VERSION_FILE);
try (var writer = new FileWriter(f)) {
writer.write(version);
writer.flush();
Expand Down

0 comments on commit de6a2cf

Please sign in to comment.