Skip to content

Latest commit

 

History

History
35 lines (33 loc) · 867 Bytes

CONTRIBUTING.md

File metadata and controls

35 lines (33 loc) · 867 Bytes

How To Contribute

Setting Local Script Execution

# set this first
$WinSetupScript = @"
Set-ExecutionPolicy Bypass -Scope Process -Force
. '$PWD\windows\WinSetup.ps1'
"@

Examples

# running against local scripts instead of remote
$env:SNYDER_WIN_SETUP_LOCAL = "true"; Invoke-Expression $WinSetupScript
# running a Non-Admin script
$env:SNYDER_WIN_SETUP = "010-U-NodePackages"; Invoke-Expression $WinSetupScript
# running an Admin script
$env:SNYDER_WIN_SETUP = "021-S-WinDocker"; Invoke-Expression $WinSetupScript
# using the prompt with remote scripts
Invoke-Expression $WinSetupScript

# using the prompt with local scripts
$env:SNYDER_WIN_SETUP_LOCAL = "true"; Invoke-Expression $WinSetupScript
# unsetting vars
Remove-Item Env:SNYDER_WIN_SETUP;
Remove-Item Env:SNYDER_WIN_SETUP_LOCAL;