Skip to content

Commit

Permalink
Changed version to 1.5.1 in Main.java
Browse files Browse the repository at this point in the history
Added cross-platform support for deleting old executables
  • Loading branch information
EvanBelcher committed Jun 14, 2017
1 parent da23bc2 commit 787cecc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
private static PagesConcurrentHashMap pageMap;
private static State state;
private static GraphicsRunner graphicsRunner;
private static final String[] versions = { "1.0.0", "1.1.0", "1.2.0", "1.2.1", "1.3.0", "1.4.0", "1.4.1", "1.5.0" };
private static final String[] versions = { "1.0.0", "1.1.0", "1.2.0", "1.2.1", "1.3.0", "1.4.0", "1.4.1", "1.5.0", "1.5.1" };
private static final String[] extensions = { ".exe", ".dmg", ".run", ".jar" };
private static Gson gson;
private static String documentsDirPath = "";

Expand All @@ -46,7 +47,8 @@ private static void deleteOldVersions() {
if (files != null)
for (File f : files)
for (int i = 0; i < versions.length - 1; i++)
if (f.getName().equals("DrillSweet.2.v" + versions[i] + ".exe"))
for (int j = 0; j < extensions.length; j++)
if (f.getName().equals("DrillSweet.2.v" + versions[i] + extensions[j]))
f.delete();
}

Expand Down
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<target name="signJar">
<signjar jar="${code.dir}/DrillSweet2-${code.version}.jar"
signedJar="${code.dir}/DrillSweet 2 v${code.version} Signed.jar"
signedJar="${code.dir}/DrillSweet 2 v${code.version}.jar"
alias="${auth.alias}"
keystore="${auth.keystore}"
storepass="${auth.pass}"
Expand All @@ -31,7 +31,7 @@
/>

<launch4j configFile="${launch4j.config}"
jar="${code.dir}/DrillSweet 2 v${code.version} Signed.jar"
jar="${code.dir}/DrillSweet 2 v${code.version}.jar"
outfile="${code.dir}/DrillSweet 2 v${code.version}.exe"
/>
</target>
Expand Down

0 comments on commit 787cecc

Please sign in to comment.