Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 0a603de

Browse files
committed
Skip unzipping externals that exist
1 parent 7d44612 commit 0a603de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.cake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ Task ("externals")
215215
// https://github.com/Redth/Cake.Xamarin.Build/blob/master/Cake.Xamarin.Build/AndroidAarFixer.cs#L24-L152
216216
FixAndroidAarFile(localArtifact, art.ArtifactId, true, true);
217217

218-
Unzip (localArtifact, "./externals/" + art.ArtifactId);
218+
// Only unzip if it doesn't exist
219+
if (!DirectoryExists("./externals/" + art.ArtifactId))
220+
Unzip (localArtifact, "./externals/" + art.ArtifactId);
219221
}
220222
}
221223

@@ -510,7 +512,7 @@ Task ("buildtasks").Does (() =>
510512
Task ("droiddocs").Does(() =>
511513
{
512514
EnsureDirectoryExists("./output");
513-
515+
514516
var compressedDocsFile = "./output/docs-" + AAR_VERSION + ".zip";
515517

516518
if (!FileExists(compressedDocsFile)) {

0 commit comments

Comments
 (0)