File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
src/main/java/io/github/fvarrui/javapackager Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ public class MacConfig implements Serializable {
33
33
private String appId ;
34
34
private String developerId = "-" ;
35
35
private File entitlements ;
36
+ private File provisionProfile ;
36
37
private boolean codesignApp = true ;
37
38
private InfoPlist infoPlist = new InfoPlist ();
38
39
private boolean hardenedCodesign = true ;
@@ -190,6 +191,14 @@ public void setDeveloperId(String developerId) {
190
191
this .developerId = developerId ;
191
192
}
192
193
194
+ public File getProvisionProfile () {
195
+ return provisionProfile ;
196
+ }
197
+
198
+ public void setProvisionProfile (File provisionProfile ) {
199
+ this .provisionProfile = provisionProfile ;
200
+ }
201
+
193
202
public File getEntitlements () {
194
203
return entitlements ;
195
204
}
Original file line number Diff line number Diff line change @@ -138,6 +138,12 @@ public File doCreateApp() throws Exception {
138
138
XMLUtils .prettify (infoPlistFile );
139
139
Logger .info ("Info.plist file created in " + infoPlistFile .getAbsolutePath ());
140
140
141
+ // copy provisionprofile
142
+ if (macConfig .getProvisionProfile () != null ) {
143
+ // file name must be 'embedded.provisionprofile'
144
+ FileUtils .copyFileToFile (macConfig .getProvisionProfile (), new File (contentsFolder , "embedded.provisionprofile" ));
145
+ }
146
+
141
147
// codesigns app folder
142
148
if (!Platform .mac .isCurrentPlatform ()) {
143
149
Logger .warn ("Generated app could not be signed due to current platform is " + Platform .getCurrentPlatform ());
You can’t perform that action at this time.
0 commit comments