Modify path DaprRoot add the SystemDrive environment variable (#989)

* Modify path DaprRoot add the SystemDrive environment variable

Signed-off-by: HueiFeng <695979933@qq.com>
Signed-off-by: hueifeng <695979933@qq.com>

* Update installdaprwin.yml

Signed-off-by: hueifeng <695979933@qq.com>

* Update README.md

Signed-off-by: hueifeng <695979933@qq.com>

Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
This commit is contained in:
Huei Feng 2022-08-02 13:37:33 +08:00 committed by GitHub
parent 9c8de2ca96
commit 6e366cd24b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ jobs:
uses: Amadevus/pwsh-script@v2.0.1
with:
script: |
$Env:Path += ";c:\dapr"
$Env:Path += ";$Env:SystemDrive\dapr"
$output=dapr --version
$runtimeVerified = False
$cliVerified = False

View File

@ -25,7 +25,7 @@ Note, if you are a new user, it is strongly recommended to install Docker and us
**Windows**
Install the latest windows Dapr CLI to `c:\dapr` and add this directory to User PATH environment variable. Use `-DaprRoot [path]` to change the default installation directory
Install the latest windows Dapr CLI to `$Env:SystemDrive\dapr` and add this directory to User PATH environment variable. Use `-DaprRoot [path]` to change the default installation directory
```powershell
powershell -Command "iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1 | iex"

View File

@ -12,7 +12,7 @@
# ------------------------------------------------------------
param (
[string]$Version,
[string]$DaprRoot = "c:\dapr",
[string]$DaprRoot = "$Env:SystemDrive\dapr",
[string]$DaprReleaseJsonUrl = "",
[scriptblock]$CustomAssetFactory = $null
)