Skip to content

Commit b78effb

Browse files
committed
Add parameter to bypass Windows 10 SDK installation in host setup script
1 parent d26e5f5 commit b78effb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bin/prepare_windows_host_for_app_distribution.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
param (
2+
[switch]$SkipWindows10SDKInstallation = $false
3+
)
4+
15
# Stop script execution when a non-terminating error occurs
26
$ErrorActionPreference = "Stop"
37

@@ -89,6 +93,11 @@ Write-Host "--- :windows: Checking whether to install Windows 10 SDK..."
8993
#
9094
# See https://github.com/hermit99/electron-windows-store/tree/v2.1.2?tab=readme-ov-file#usage
9195

96+
if ($SkipWindows10SDKInstallation) {
97+
Write-Host "Run with SkipWindows10SDKInstallation = true. Skipping Windows 10 SDK installation check."
98+
exit 0
99+
}
100+
92101
$windowsSDKVersionFile = ".windows-10-sdk-version"
93102
if (Test-Path $windowsSDKVersionFile) {
94103
Write-Host "Found $windowsSDKVersionFile file, installing Windows 10 SDK..."

0 commit comments

Comments
 (0)