Skip to content

Commit 66dce1c

Browse files
committed
testing ls command during build
1 parent 4c0e1a3 commit 66dce1c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Assets/SequenceSDK/Editor/TestflightUploadPostBuildScript.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ public void OnPostprocessBuild(BuildReport report)
1919
return;
2020

2121
var exportPath = report.summary.outputPath;
22-
var ipaPath = Path.GetFullPath(Path.Combine(exportPath, "../.build/last/ios-production/build.ipa"));
22+
var ipaPath = Path.GetFullPath(Path.Combine(exportPath, "../.build/last/ios-production"));
23+
var ipaFile = Path.Combine(ipaPath, "build.ipa");
2324

24-
Debug.Log($"Uploading iOS binary to TestFlight from {ipaPath}");
25+
Debug.Log($"Uploading iOS binary to TestFlight from {ipaFile}");
2526

2627
var keyId = Environment.GetEnvironmentVariable("APPSTORE_CONNECT_KEY_ID");
2728
var issuerId = Environment.GetEnvironmentVariable("APPSTORE_CONNECT_ISSUER_ID");
@@ -34,7 +35,8 @@ public void OnPostprocessBuild(BuildReport report)
3435
var keyPath = Path.Combine(keyDir, $"AuthKey_{keyId}.p8");
3536
File.WriteAllText(keyPath, privateKey);
3637

37-
var cmd = $"xcrun altool --upload-app -f \"{ipaPath}\" -t ios --apiKey {keyId} --apiIssuer {issuerId}";
38+
var cmd = $"xcrun altool --upload-app -f \"{ipaFile}\" -t ios --apiKey {keyId} --apiIssuer {issuerId}";
39+
RunCommand("/bin/bash", $"ls {ipaPath}");
3840
RunCommand("/bin/bash", $"-c \"{cmd}\"");
3941
}
4042

0 commit comments

Comments
 (0)