Skip to content

fix(install.ps1): support Windows PowerShell 5.1 and fix default_base… - #188

Open
Steven-Qiang wants to merge 1 commit into
voidint:masterfrom
Steven-Qiang:master
Open

fix(install.ps1): support Windows PowerShell 5.1 and fix default_base…#188
Steven-Qiang wants to merge 1 commit into
voidint:masterfrom
Steven-Qiang:master

Conversation

@Steven-Qiang

Copy link
Copy Markdown

…_dir

  • Replace PowerShell 7+-only ternary operator with if/else so the script parses and runs on Windows PowerShell 5.1 (the default 'powershell.exe').
  • Force TLS 1.2 before the download; on PS 5.1 the default TLS negotiation is rejected by GitHub and the release download fails.
  • Define and use \ in setHOME so G_EXPERIMENTAL is only enabled when a custom base dir is used, instead of always being enabled.

…_dir

- Replace PowerShell 7+-only ternary operator with if/else so the script
  parses and runs on Windows PowerShell 5.1 (the default 'powershell.exe').
- Force TLS 1.2 before the download; on PS 5.1 the default TLS negotiation
  is rejected by GitHub and the release download fails.
- Define and use \ in setHOME so G_EXPERIMENTAL is only
  enabled when a custom base dir is used, instead of always being enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant