Skip to content

Commit

Permalink
Polish TestFlight script logging a little more
Browse files Browse the repository at this point in the history
  • Loading branch information
saagarjha committed Feb 25, 2024
1 parent d5df4a5 commit fa8aebb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Release/send_to_testflight.swift
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,12 @@ setbuf(stdout, nil)

let build = CommandLine.arguments[1]
print("Performing steps for build \(build)...")
print()

let _key = ProcessInfo.processInfo.environment["AUTHENTICATION_KEY"]!
let keyID = ProcessInfo.processInfo.environment["AUTHENTICATION_KEY_ID"]!
let issuerID = ProcessInfo.processInfo.environment["AUTHENTICATION_KEY_ISSUER_ID"]!
print("Loading authentication from \(_key), keyID \(keyID), \(issuerID)...", terminator: "")
print("Loading authentication from \(_key), keyID \(keyID), issuerID \(issuerID)...", terminator: "")

let key = try Data(contentsOf: URL(fileURLWithPath: _key))
let api = try API(key: key, keyID: keyID, issuerID: issuerID)
Expand Down Expand Up @@ -383,5 +384,8 @@ for build in [macOSBuild, visionOSBuild] {

print("Submitting build \(build.id) for review...", terminator: "")
try await api.submitBuildForReview(buildID: build.id)
print("")
print("Submitted!")
}

print()
print("Finished!")

0 comments on commit fa8aebb

Please sign in to comment.