mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-02-02 06:54:01 +08:00
<update>: update file date.
This commit is contained in:
parent
969779f44a
commit
8131588426
|
@ -3,7 +3,7 @@
|
||||||
# File Authors : Aoran Zeng <ccmywish@qq.com>
|
# File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
# | ChatGPT <https://chatgpt.com/>
|
# | ChatGPT <https://chatgpt.com/>
|
||||||
# Created On : <2024-10-26>
|
# Created On : <2024-10-26>
|
||||||
# Last Modified : <2024-10-26>
|
# Last Modified : <2024-10-27>
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# chsrc installer for Windows
|
# chsrc installer for Windows
|
||||||
|
@ -26,6 +26,7 @@ $global:arch = ""
|
||||||
$global:version = ""
|
$global:version = ""
|
||||||
$global:url = ""
|
$global:url = ""
|
||||||
$global:flag = 0
|
$global:flag = 0
|
||||||
|
|
||||||
# 安装说明的多行字符串
|
# 安装说明的多行字符串
|
||||||
$installInstructions = @"
|
$installInstructions = @"
|
||||||
Hey friend
|
Hey friend
|
||||||
|
@ -155,9 +156,6 @@ function DownLoad {
|
||||||
# 执行下载
|
# 执行下载
|
||||||
try {
|
try {
|
||||||
Invoke-WebRequest -OutFile ($global:path + $fileName) -Uri $global:url -ErrorAction Stop
|
Invoke-WebRequest -OutFile ($global:path + $fileName) -Uri $global:url -ErrorAction Stop
|
||||||
|
|
||||||
# curl.exe -Lo $global:path $global:url
|
|
||||||
|
|
||||||
Write-Host "Downloading $binary_name ($global:arch architecture, $platform platform, version $global:version) to $global:path"
|
Write-Host "Downloading $binary_name ($global:arch architecture, $platform platform, version $global:version) to $global:path"
|
||||||
Write-Host "🎉 Installation completed, path: $global:path"
|
Write-Host "🎉 Installation completed, path: $global:path"
|
||||||
} catch {
|
} catch {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user