Skip to content

Commit

Permalink
Add support for passing in team id
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Oct 26, 2023
1 parent 1c78511 commit 184dac6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public static void Main(string[] args)
+ " -c Release"
+ $" -o {stagingPath}"
+ $" -p:Version={version}"
+ $" -p:ApplicationDisplayVersion=1.0"
+ " -p:ApplicationDisplayVersion=1.0"
+ " --self-contained"
+ " osu.iOS/osu.iOS.csproj");

Expand Down Expand Up @@ -384,13 +384,15 @@ private static void buildForMac(string arch, string version)
runCommand("ditto", $"-ck --rsrc --keepParent --sequesterRsrc {stagingApp} \"{zippedApp}\"");

string notarisationUsername = ConfigurationManager.AppSettings["AppleUsername"] ?? string.Empty;
string notarisationPassword = ConfigurationManager.AppSettings["ApplePassword"] ?? string.Empty;
string teamId = ConfigurationManager.AppSettings["AppleTeamId"] ?? string.Empty;

if (!string.IsNullOrEmpty(notarisationUsername))
{
write("Submitting for notarisation...");
// upload for notarisation
runCommand("xcrun",
$"notarytool submit --apple-id \"{notarisationUsername}\" --password \"{ConfigurationManager.AppSettings["ApplePassword"]}\" \"{zippedApp}\" --wait");
$"notarytool submit --apple-id \"{notarisationUsername}\" --password \"{notarisationPassword}\" --team-id \"{teamId}\" \"{zippedApp}\" --wait");
// TODO: make this actually wait properly

// staple notarisation result
Expand Down

0 comments on commit 184dac6

Please sign in to comment.