Skip to content

Commit

Permalink
Add parameter to bypass Windows 10 SDK installation in host setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio committed Feb 21, 2025
1 parent d26e5f5 commit b78effb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bin/prepare_windows_host_for_app_distribution.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
param (
[switch]$SkipWindows10SDKInstallation = $false
)

# Stop script execution when a non-terminating error occurs
$ErrorActionPreference = "Stop"

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

if ($SkipWindows10SDKInstallation) {
Write-Host "Run with SkipWindows10SDKInstallation = true. Skipping Windows 10 SDK installation check."
exit 0
}

$windowsSDKVersionFile = ".windows-10-sdk-version"
if (Test-Path $windowsSDKVersionFile) {
Write-Host "Found $windowsSDKVersionFile file, installing Windows 10 SDK..."
Expand Down

0 comments on commit b78effb

Please sign in to comment.