代码拉取完成,页面将自动刷新
powershell -Command "iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1 | iex"
powershell -Command "$script=iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1; $block=[ScriptBlock]::Create($script); invoke-command -ScriptBlock $block -ArgumentList <Version>"
curl -fsSL https://raw.githubusercontent.com/dapr/cli/master/install/install.sh | /bin/bash
curl -fsSL https://raw.githubusercontent.com/dapr/cli/master/install/install.sh | /bin/bash -s <Version>
wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash
wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash -s <Version>
You can download resources from a mirror instead of from Github.
CustomAssetFactory
function to define what the release asset url you want to useDaprReleaseJsonUrl
to the equivalent of the json representation of all releases at https://api.github.com/repos/dapr/cli/releasesFor example, if you are in Chinese mainland, you could use:
function CustomAssetFactory {
param (
$release
)
[hashtable]$return = @{}
$return.url = "https://github.com.cnpmjs.org/dapr/cli/releases/download/$($release.tag_name)/dapr_windows_amd64.zip"
$return.name = "dapr_windows_amd64.zip"
$return
}
$params = @{
CustomAssetFactory = ${function:CustomAssetFactory};
DaprReleaseJsonUrl = "https://gitee.com/dapr-cn/dapr-bin-mirror/raw/main/cli/releases.json";
}
$script=iwr -useb https://cdn.jsdelivr.net/gh/dapr/cli/install/install.ps1;
$block=[ScriptBlock]::Create(".{$script} $(&{$args} @params)");
Invoke-Command -ScriptBlock $block
function CustomAssetFactory {
param (
$release
)
[hashtable]$return = @{}
$return.url = "https://github.com.cnpmjs.org/dapr/cli/releases/download/$($release.tag_name)/dapr_windows_amd64.zip"
$return.name = "dapr_windows_amd64.zip"
$return
}
$params = @{
CustomAssetFactory = ${function:CustomAssetFactory};
DaprReleaseJsonUrl = "https://gitee.com/dapr-cn/dapr-bin-mirror/raw/main/cli/releases.json";
Version = <Version>
}
$script=iwr -useb https://cdn.jsdelivr.net/gh/dapr/cli/install/install.ps1;
$block=[ScriptBlock]::Create(".{$script} $(&{$args} @params)");
Invoke-Command -ScriptBlock $block
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。