mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-25 06:40:03 +00:00
Fix install-from-binstall-release.sh for Git Bash users on Windows (#1562)
* Update install-from-binstall-release.sh * Update install-from-binstall-release.sh * Update install-from-binstall-release.sh Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com> * Update install-from-binstall-release.sh Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com> * Update install-script.yml * Update install-from-binstall-release.sh * Update install-script.yml --------- Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
7222a8279d
commit
b415b0d7e6
2 changed files with 36 additions and 0 deletions
|
@ -20,6 +20,12 @@ elif [ "$os" == "Linux" ]; then
|
|||
|
||||
url="${base_url}${target}.tgz"
|
||||
curl -L --proto '=https' --tlsv1.2 -sSf "$url" | tar -xvzf -
|
||||
elif [ "${OS-}" = "Windows_NT" ]; then
|
||||
machine="$(uname -m)"
|
||||
target="${machine}-pc-windows-msvc"
|
||||
url="${base_url}${target}.zip"
|
||||
curl -LO --proto '=https' --tlsv1.2 -sSf "$url"
|
||||
unzip "cargo-binstall-${target}.zip"
|
||||
else
|
||||
echo "Unsupported OS ${os}"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue