fix(shorebird_cli): use aarch64 instead of arm64 as iOS architecture (#609)

This commit is contained in:
Bryan Oltman
2023-06-08 13:44:38 -04:00
committed by GitHub
parent d69d63eed9
commit e7a5edcbfd
2 changed files with 4 additions and 3 deletions
@@ -84,6 +84,7 @@ class PatchIosCommand extends ShorebirdCommand
'''iOS support is in an experimental state and will not work without Flutter engine changes that have not yet been published.''',
);
const arch = 'aarch64';
const channelName = 'stable';
const platform = 'ios';
final force = results['force'] == true;
@@ -201,7 +202,7 @@ https://github.com/shorebirdtech/shorebird/issues/472
if (flavor != null) '🍧 Flavor: ${lightCyan.wrap(flavor)}',
'📦 Release Version: ${lightCyan.wrap(releaseVersion)}',
'📺 Channel: ${lightCyan.wrap(channelName)}',
'''🕹️ Platform: ${lightCyan.wrap(platform)} ${lightCyan.wrap('[arm64 (${formatBytes(aotFileSize)})]')}''',
'''🕹️ Platform: ${lightCyan.wrap(platform)} ${lightCyan.wrap('[$arch (${formatBytes(aotFileSize)})]')}''',
];
logger.info(
@@ -232,7 +233,7 @@ ${summary.join('\n')}
channelName: channelName,
patchArtifactBundles: {
Arch.arm64: PatchArtifactBundle(
arch: 'arm64',
arch: arch,
path: aotFile.path,
hash: _hashFn(aotFile.readAsBytesSync()),
size: aotFileSize,
@@ -405,7 +405,7 @@ https://github.com/shorebirdtech/shorebird/issues/472
() => logger.info(
any(
that: contains(
'''🕹️ Platform: ${lightCyan.wrap(platform)} ${lightCyan.wrap('[arm64 (0 B)]')}''',
'''🕹️ Platform: ${lightCyan.wrap(platform)} ${lightCyan.wrap('[aarch64 (0 B)]')}''',
),
),
),