Skip to content

Commit

Permalink
Migrater away from soon-to-be-obsoleted altool
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Oct 19, 2023
1 parent 9d54a62 commit 717b2d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,11 @@ private static void buildForMac(string arch, string version)

if (!string.IsNullOrEmpty(notarisationUsername))
{
write("Submitting for notarisation...");
// upload for notarisation
runCommand("xcrun",
$"altool --notarize-app --primary-bundle-id \"sh.ppy.osu.lazer\" --username \"{notarisationUsername}\" --password \"{ConfigurationManager.AppSettings["ApplePassword"]}\" --file \"{zippedApp}\"");
$"xcrun notarytool submit --apple-id \"{notarisationUsername}\" --password \"{ConfigurationManager.AppSettings["ApplePassword"]}\" \"{zippedApp}\" --wait");
// TODO: make this actually wait properly
write("Waiting for notarisation to complete..");
Thread.Sleep(60000 * 5);

// staple notarisation result
runCommand("xcrun", $"stapler staple {stagingApp}");
Expand Down

0 comments on commit 717b2d4

Please sign in to comment.