Skip to content

Instantly share code, notes, and snippets.

@J-Graham
Created February 4, 2020 16:44
Show Gist options
  • Save J-Graham/93e7b127949404170a602fcf2650dbb1 to your computer and use it in GitHub Desktop.
Save J-Graham/93e7b127949404170a602fcf2650dbb1 to your computer and use it in GitHub Desktop.
Native Problem Web brain blog - Powershell
# Get architecture-specific dependencies
if (($Env:Processor_Architecture -eq "x86" -or $Env:Processor_Architecture -eq "amd64") -and (Test-Path (Join-Path $DependencyPackagesDir "x86")))
{
$DependencyPackages += Get-ChildItem (Join-Path $DependencyPackagesDir "x86\*.appx") | Where-Object { $_.Mode -NotMatch "d" }
}
if (($Env:Processor_Architecture -eq "amd64") -and (Test-Path (Join-Path $DependencyPackagesDir "x64")))
{
$DependencyPackages += Get-ChildItem (Join-Path $DependencyPackagesDir "x64\*.appx") | Where-Object { $_.Mode -NotMatch "d" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment