Merge pull request #3472 from Rummskartoffel/windows-nativeinstall-executionpolicy

Native, Windows: bypass execution policy in install command
This commit is contained in:
Oliver Blanthorn 2021-03-14 15:17:07 +00:00 committed by GitHub
commit cf11ac3cd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1152,7 +1152,7 @@ const platform_defaults = {
"<C-6>": "buffer #",
} as unknown,
nativeinstallcmd: `powershell -NoProfile -Command "\
nativeinstallcmd: `powershell -ExecutionPolicy Bypass -NoProfile -Command "\
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12;\
(New-Object System.Net.WebClient).DownloadFile('https://raw.githubusercontent.com/tridactyl/native_messenger/master/installers/windows.ps1', '%TEMP%/tridactyl_installnative.ps1');\
& '%TEMP%/tridactyl_installnative.ps1' -Tag %TAG;\