mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-03-13 07:55:12 +08:00
Rename to download-release
This commit is contained in:
parent
212bf64f50
commit
71854c19a9
42
tool/download-release.ps1
Normal file
42
tool/download-release.ps1
Normal file
@ -0,0 +1,42 @@
|
||||
# ---------------------------------------------------------------
|
||||
# File : download-release.ps1
|
||||
# Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
# Created on : <2023-09-21>
|
||||
# Last modified : <2024-05-24>
|
||||
#
|
||||
# download:
|
||||
#
|
||||
# Download from GitHub Releases
|
||||
# ----------
|
||||
# Changelog:
|
||||
#
|
||||
# ~> v0.1.0
|
||||
# <2024-05-24> Rename to download-release
|
||||
# <2023-09-21> Create file
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
$destination = "~\Desktop\chsrc-GitHub-release"
|
||||
|
||||
Write-Output "=> Mkdir $destination"
|
||||
mkdir -Force $destination | Out-Null
|
||||
Set-Location $destination
|
||||
|
||||
$names = @(
|
||||
'chsrc-x64-windows.exe'
|
||||
'chsrc-x86-windows.exe'
|
||||
'chsrc-x64-macos'
|
||||
'chsrc-x64-linux'
|
||||
'chsrc-aarch64-linux'
|
||||
'chsrc-riscv64-linux'
|
||||
'chsrc-armv7-linux'
|
||||
)
|
||||
|
||||
# Like https://github.com/RubyMetric/chsrc/releases/download/preview/chsrc-x64-windows.exe
|
||||
$url_prefix = "https://github.com/RubyMetric/chsrc/releases/download/preview/"
|
||||
|
||||
foreach ($name in $names) {
|
||||
curl -LO "${url_prefix}${name}"
|
||||
}
|
||||
|
||||
Set-Location -
|
||||
Write-Output "=> Downloaded to $destination"
|
@ -1,8 +0,0 @@
|
||||
tmp
|
||||
curl -LO https://github.com/RubyMetric/chsrc/releases/download/preview/chsrc-x64-windows.exe
|
||||
curl -LO https://github.com/RubyMetric/chsrc/releases/download/preview/chsrc-x86-windows.exe
|
||||
curl -LO https://github.com/RubyMetric/chsrc/releases/download/preview/chsrc-x64-macos
|
||||
curl -LO https://github.com/RubyMetric/chsrc/releases/download/preview/chsrc-x64-linux
|
||||
curl -LO https://github.com/RubyMetric/chsrc/releases/download/preview/chsrc-aarch64-linux
|
||||
curl -LO https://github.com/RubyMetric/chsrc/releases/download/preview/chsrc-riscv64-linux
|
||||
curl -LO https://github.com/RubyMetric/chsrc/releases/download/preview/chsrc-armv7-linux
|
Loading…
x
Reference in New Issue
Block a user