File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -629,7 +629,8 @@ function Fetch-Dependencies {
629
629
(
630
630
[string ]$ZipFileName ,
631
631
[string ]$BinaryCache ,
632
- [string ]$ExtractPath
632
+ [string ]$ExtractPath ,
633
+ [bool ]$CreateExtractPath = $true
633
634
)
634
635
635
636
$source = Join-Path - Path $BinaryCache - ChildPath $ZipFileName
@@ -646,11 +647,14 @@ function Fetch-Dependencies {
646
647
}
647
648
}
648
649
650
+ $destination = if ($CreateExtractPath ) { $destination } else { $BinaryCache }
651
+
649
652
Write-Output " Extracting '$ZipFileName ' ..."
650
653
New-Item - ItemType Directory - ErrorAction Ignore - Path $BinaryCache | Out-Null
651
654
Expand-Archive - Path $source - DestinationPath $destination - Force
652
655
}
653
656
657
+
654
658
function Extract-Toolchain {
655
659
param
656
660
(
@@ -727,7 +731,7 @@ function Fetch-Dependencies {
727
731
$NDKHash = " A478D43D4A45D0D345CDA6BE50D79642B92FB175868D9DC0DFC86181D80F691E"
728
732
DownloadAndVerify $NDKURL " $BinaryCache \android-ndk-$AndroidNDKVersion -windows.zip" $NDKHash
729
733
730
- Extract- ZipFile - ZipFileName " android-ndk-$AndroidNDKVersion -windows.zip" - BinaryCache $BinaryCache - ExtractPath " android-ndk-$AndroidNDKVersion "
734
+ Extract- ZipFile - ZipFileName " android-ndk-$AndroidNDKVersion -windows.zip" - BinaryCache $BinaryCache - ExtractPath " android-ndk-$AndroidNDKVersion " - CreateExtractPath $false
731
735
}
732
736
733
737
if ($WinSDKVersion ) {
You can’t perform that action at this time.
0 commit comments