We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04e2e0f commit a50e3fbCopy full SHA for a50e3fb
tool/plugin/lib/artifact.dart
@@ -142,7 +142,11 @@ class ArtifactManager {
142
var files = Directory(artifact.outPath).listSync();
143
if (files.length < 3) /* Might have .DS_Store */ {
144
// This is the Mac zip case.
145
- Directory("${files.first.path}/Contents")
+ var entity = files.first;
146
+ if (entity.statSync().type == FileSystemEntityType.file) {
147
+ entity = files.last;
148
+ }
149
+ Directory("${entity.path}/Contents")
150
.renameSync("${artifact.outPath}Temp");
151
Directory(artifact.outPath).deleteSync(recursive: true);
152
Directory("${artifact.outPath}Temp").renameSync(artifact.outPath);
0 commit comments