@@ -27,7 +27,9 @@ public class MacConfig implements Serializable {
2727 private boolean generateDmg = true ;
2828 private boolean generatePkg = true ;
2929 private boolean relocateJar = true ;
30- private String signingIdentity = "-" ;
30+ private String appIdentifier ;
31+ private String developerId = "-" ;
32+ private File entitlements ;
3133
3234 public File getIcnsFile () {
3335 return icnsFile ;
@@ -165,12 +167,28 @@ public void setRelocateJar(boolean relocateJar) {
165167 this .relocateJar = relocateJar ;
166168 }
167169
168- public String getSigningIdentity () {
169- return signingIdentity ;
170+ public String getAppIdentifier () {
171+ return appIdentifier ;
170172 }
171173
172- public void setSigningIdentity (String signingIdentity ) {
173- this .signingIdentity = signingIdentity ;
174+ public void setAppIdentifier (String appIdentifier ) {
175+ this .appIdentifier = appIdentifier ;
176+ }
177+
178+ public String getDeveloperId () {
179+ return developerId ;
180+ }
181+
182+ public void setDeveloperId (String developerId ) {
183+ this .developerId = developerId ;
184+ }
185+
186+ public File getEntitlements () {
187+ return entitlements ;
188+ }
189+
190+ public void setEntitlements (File entitlements ) {
191+ this .entitlements = entitlements ;
174192 }
175193
176194 @ Override
@@ -180,7 +198,8 @@ public String toString() {
180198 + ", iconSize=" + iconSize + ", textSize=" + textSize + ", iconX=" + iconX + ", iconY=" + iconY
181199 + ", appsLinkIconX=" + appsLinkIconX + ", appsLinkIconY=" + appsLinkIconY + ", volumeIcon=" + volumeIcon
182200 + ", volumeName=" + volumeName + ", generateDmg=" + generateDmg + ", generatePkg=" + generatePkg
183- + ", relocateJar=" + relocateJar + ", signingIdentity=" + signingIdentity + "]" ;
201+ + ", relocateJar=" + relocateJar + ", appIdentifier=" + appIdentifier + ", developerId=" + developerId
202+ + ", entitlements=" + entitlements + "]" ;
184203 }
185204
186205 /**
@@ -199,5 +218,6 @@ public void setDefaults(Packager packager) {
199218 this .setIconY (defaultIfNull (this .getIconY (), 116 ));
200219 this .setAppsLinkIconX (defaultIfNull (this .getAppsLinkIconX (), 360 ));
201220 this .setAppsLinkIconY (defaultIfNull (this .getAppsLinkIconY (), 116 ));
221+ this .setAppIdentifier (defaultIfNull (this .getAppIdentifier (), packager .getMainClass ()));
202222 }
203223}
0 commit comments