Skip to content

Commit

Permalink
Merge pull request #7 from Wolpertingergames/master
Browse files Browse the repository at this point in the history
Added Build command archive instead of build
  • Loading branch information
Redth authored Aug 6, 2019
2 parents 4ddf260 + d2e8f8a commit f113cca
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/Cake.XCode/XCodeBuildRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,12 @@ public class XCodeBuildSettings : XCodeSettings
/// <value>The export path.</value>
public DirectoryPath ExportPath { get; set; }

/// <summary>
/// Specifies the location of the plist file used as options in the export process.
/// </summary>
/// <value>The path to plist.</value>
public DirectoryPath ExportOptionsPlist { get; set; }

/// <summary>
/// Specifies the provisioning profile that should be used when re-signing the exported archive; if possible, implies a signing identity
/// </summary>
Expand Down Expand Up @@ -227,6 +233,12 @@ public class XCodeBuildSettings : XCodeSettings
/// <value><c>true</c> if project should be cleaned; otherwise, <c>false</c>.</value>
public bool Clean { get; set; }

/// <summary>
/// Gets or sets a value indicating whether project should be archived instead of builded.
/// </summary>
/// <value><c>true</c> if project should be archive; otherwise, <c>false</c>.</value>
public bool Archive { get; set; }

/// <summary>
/// Export format type.
/// </summary>
Expand Down Expand Up @@ -361,6 +373,9 @@ public void Build (XCodeBuildSettings settings)
if (settings.ExportPath != null)
builder.Append ("-exportPath " + GetQuotedAbsolute (settings.ExportPath));

if (settings.ExportOptionsPlist != null)
builder.Append("-exportOptionsPlist " + GetQuotedAbsolute(settings.ExportOptionsPlist));

if (!string.IsNullOrEmpty (settings.ExportProvisioningProfile))
builder.Append ("-exportProvisioningProfile " + settings.ExportProvisioningProfile);

Expand All @@ -385,7 +400,10 @@ public void Build (XCodeBuildSettings settings)
if (!string.IsNullOrEmpty (settings.ExportLanguage))
builder.Append ("-exportLanguage " + settings.ExportLanguage);

builder.Append ("build");
if(settings.Archive)
builder.Append("archive");
else
builder.Append ("build");

if (settings.Clean)
builder.Append ("clean");
Expand Down

0 comments on commit f113cca

Please sign in to comment.