Skip to content

Commit

Permalink
fix: Removed MobileProvision as it is not needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Jan 6, 2023
1 parent 42c0085 commit c569721
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
8 changes: 8 additions & 0 deletions packages/katana_cli/lib/command/create.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,13 @@ class CreateCliCommand extends CliCommand {
"--delete-conflicting-outputs",
],
);
await command(
"Run `pod install`.",
[
"pod",
"install",
],
workingDirectory: "ios",
);
}
}
34 changes: 15 additions & 19 deletions packages/katana_cli/lib/command/github/platform/ios.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ Future<void> buildIOS(
Directory("ios"),
RegExp("([^/.]+).mobileprovision"),
);
if (mobileProvisionFile == null) {
print(
"mobileprovision file not found, please create and download from AppleDeveloperProgram. mobileprovisionファイルが見つかりません。AppleDeveloperProgramから作成しダウンロードしてください。",
);
return;
}
final passwordFile = File("ios/ios_certificate_password.key");
if (!passwordFile.existsSync()) {
print(
Expand Down Expand Up @@ -90,20 +84,22 @@ Future<void> buildIOS(
final p8Key =
RegExp(r"AuthKey_([a-zA-Z0-9]+).p8$").firstMatch(p8File.path)!.group(1)!;
final p12 = base64.encode(await p12File.readAsBytes());
final mobileProvision =
base64.encode(await mobileProvisionFile.readAsBytes());
final password = await passwordFile.readAsString();
await command(
"Store `${mobileProvisionFile.path.last()}` in `secrets.IOS_PROVISIONING_PROFILE`.",
[
gh,
"secret",
"set",
"IOS_PROVISIONING_PROFILE",
"--body",
mobileProvision,
],
);
if (mobileProvisionFile != null) {
final mobileProvision =
base64.encode(await mobileProvisionFile.readAsBytes());
await command(
"Store `${mobileProvisionFile.path.last()}` in `secrets.IOS_PROVISIONING_PROFILE`.",
[
gh,
"secret",
"set",
"IOS_PROVISIONING_PROFILE",
"--body",
mobileProvision,
],
);
}
await command(
"Store `${p12File.path.last()}` in `secrets.IOS_CERTIFICATES_P12`.",
[
Expand Down

0 comments on commit c569721

Please sign in to comment.