From 184dac6b8dcaab695c1ce43b7c6d888f771ee856 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 26 Oct 2023 16:39:35 +0900 Subject: [PATCH] Add support for passing in team id --- Program.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index fb14555..4385f4f 100644 --- a/Program.cs +++ b/Program.cs @@ -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"); @@ -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