fix: use temp dir for ios-framework release artifacts (#2830)

This commit is contained in:
Bryan Oltman
2025-02-03 09:53:17 -05:00
committed by GitHub
parent 3c6d23836c
commit fd3342a683
2 changed files with 5 additions and 8 deletions
@@ -4,9 +4,7 @@
// cspell:words xcarchive codesigned xcframework
import 'dart:io';
import 'dart:isolate';
import 'package:archive/archive_io.dart';
import 'package:collection/collection.dart';
import 'package:crypto/crypto.dart';
import 'package:equatable/equatable.dart';
@@ -814,11 +812,7 @@ aar artifact already exists, continuing...''',
}) async {
final createArtifactProgress = logger.progress('Uploading artifacts');
final appFrameworkDirectory = Directory(appFrameworkPath);
await Isolate.run(
() => ZipFileEncoder().zipDirectory(appFrameworkDirectory),
);
final zippedAppFrameworkFile = File('$appFrameworkPath.zip');
final zippedAppFrameworkFile = await appFrameworkDirectory.zipToTempFile();
try {
await codePushClient.createReleaseArtifact(
appId: appId,
@@ -35,7 +35,10 @@ class IosFrameworkReleaser extends Releaser {
/// The directory where the release artifacts are stored.
Directory get releaseDirectory => Directory(
p.join(shorebirdEnv.getShorebirdProjectRoot()!.path, 'release'),
p.join(
shorebirdEnv.getShorebirdProjectRoot()!.path,
'release',
),
);
@override