mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-12-29 18:24:10 +08:00
parent
b3163241cf
commit
e0944157d4
|
@ -100,6 +100,8 @@
|
||||||
<details>
|
<details>
|
||||||
<summary>Windows</summary>
|
<summary>Windows</summary>
|
||||||
|
|
||||||
|
<div style="magrin-top: 10px"> </div>
|
||||||
|
|
||||||
- 可通过 `scoop` 安装,感谢 [@Gn3po4g] 与 [@niheaven]
|
- 可通过 `scoop` 安装,感谢 [@Gn3po4g] 与 [@niheaven]
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -113,7 +115,7 @@ $ scoop install chsrc
|
||||||
若下方链接无法访问,可使用 `https://gitee.com/RubyMetric/chsrc/raw/main/tool/installer.ps1` 替代
|
若下方链接无法访问,可使用 `https://gitee.com/RubyMetric/chsrc/raw/main/tool/installer.ps1` 替代
|
||||||
|
|
||||||
```PowerShell
|
```PowerShell
|
||||||
$ iwr -useb "https://chsrc.run/windows" | iex
|
"& { $(iwr -useb https://chsrc.run/windows) } -Version pre" | iex
|
||||||
```
|
```
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# Contributors : Aoran Zeng <ccmywish@qq.com>
|
# Contributors : Aoran Zeng <ccmywish@qq.com>
|
||||||
# |
|
# |
|
||||||
# Created On : <2024-10-26>
|
# Created On : <2024-10-26>
|
||||||
# Last Modified : <2024-10-27>
|
# Last Modified : <2024-12-07>
|
||||||
#
|
#
|
||||||
# chsrc installer for Windows
|
# chsrc installer for Windows
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
@ -163,7 +163,8 @@ function Install {
|
||||||
$outfile = "\${binary_name}.exe"
|
$outfile = "\${binary_name}.exe"
|
||||||
output_info "Downloading $binary_name ($global:arch architecture, $platform platform, version $global:version) to $global:install_dir ..."
|
output_info "Downloading $binary_name ($global:arch architecture, $platform platform, version $global:version) to $global:install_dir ..."
|
||||||
Invoke-WebRequest -OutFile ($global:install_dir + $outfile) -Uri $global:url -ErrorAction Stop
|
Invoke-WebRequest -OutFile ($global:install_dir + $outfile) -Uri $global:url -ErrorAction Stop
|
||||||
output_info "🎉 Installation completed, destination: " ($global:install_dir + $outfile)
|
# 🎉 这个符号会变成 ??? 不要添加
|
||||||
|
output_info "Installation completed, destination: " ($global:install_dir + $outfile)
|
||||||
} catch {
|
} catch {
|
||||||
output_error "Unable to download $binary_name. Error: $_"
|
output_error "Unable to download $binary_name. Error: $_"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user