forked from firka/flutter
Delete unzipped FlutterMacOS.framework before replacing artifact (#77316)
This commit is contained in:
@@ -934,6 +934,7 @@ abstract class EngineCachedArtifact extends CachedArtifact {
|
||||
final File frameworkZip = fileSystem.file(fileSystem.path.join(dir.path, 'FlutterMacOS.framework.zip'));
|
||||
if (frameworkZip.existsSync()) {
|
||||
final Directory framework = fileSystem.directory(fileSystem.path.join(dir.path, 'FlutterMacOS.framework'));
|
||||
ErrorHandlingFileSystem.deleteIfExists(framework, recursive: true);
|
||||
framework.createSync();
|
||||
operatingSystemUtils.unzip(frameworkZip, framework);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user