Skip to content

Commit de1f086

Browse files
committed
Support for CFBundleVersion Neede for Mac App Store (Haavar Valeur)
See: arduino/Arduino#1665 https://java.net/jira/browse/APPBUNDLER-24
1 parent 757bb88 commit de1f086

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

appbundler/src/com/oracle/appbundler/AppBundlerTask.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public class AppBundlerTask extends Task {
6868
private File icon = null;
6969

7070
private String shortVersion = "1.0";
71+
private String version = "1";
7172
private String signature = "????";
7273
private String copyright = "";
7374

@@ -120,6 +121,10 @@ public void setShortVersion(String shortVersion) {
120121
this.shortVersion = shortVersion;
121122
}
122123

124+
public void setVersion(String version) {
125+
this.version = version;
126+
}
127+
123128
public void setSignature(String signature) {
124129
this.signature = signature;
125130
}
@@ -465,7 +470,7 @@ private void writeInfoPlist(File file) throws IOException {
465470
writeProperty(xout, "CFBundlePackageType", OS_TYPE_CODE);
466471
writeProperty(xout, "CFBundleShortVersionString", shortVersion);
467472
writeProperty(xout, "CFBundleSignature", signature);
468-
writeProperty(xout, "CFBundleVersion", "1");
473+
writeProperty(xout, "CFBundleVersion", version);
469474
writeProperty(xout, "NSHumanReadableCopyright", copyright);
470475

471476
if (applicationCategory != null) {

0 commit comments

Comments
 (0)