From f61a10e2f40cb05bc4a2c5e1987f5fb22a1b746a Mon Sep 17 00:00:00 2001 From: laureanray Date: Thu, 29 Jun 2023 15:16:14 +0800 Subject: [PATCH] fix install script to use the updated target name --- install.ps1 | 4 ++-- install.sh | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/install.ps1 b/install.ps1 index 6ce4a08..5f0c6c7 100644 --- a/install.ps1 +++ b/install.ps1 @@ -20,7 +20,7 @@ $BinDir = if ($ClibgenInstall) { $ClibgenZip = "$BinDir\clibgen.zip" $ClibgenExe = "$BinDir\clibgen.exe" -$Target = 'Windows-x86_64' +$Target = 'windows-amd64' # GitHub requires TLS 1.2 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 @@ -51,4 +51,4 @@ if (!(";$Path;".ToLower() -like "*;$BinDir;*".ToLower())) { } Write-Output "Clibgen was installed successfully to $ClibgenExe" -Write-Output "Run 'clibgen --help' to get started" \ No newline at end of file +Write-Output "Run 'clibgen --help' to get started" diff --git a/install.sh b/install.sh index bb91487..b37048c 100755 --- a/install.sh +++ b/install.sh @@ -8,12 +8,12 @@ if ! command -v tar >/dev/null; then fi if [ "$OS" = "Windows_NT" ]; then - target="Windows_x86_64" + target="windows-amd64" else case $(uname -sm) in - "Darwin x86_64") target="Darwin-x86_64" ;; - "Darwin arm64") target="Darwin-arm64" ;; - *) target="Linux-x86_64" ;; + "Darwin x86_64") target="darwin-amd64" ;; + "Darwin arm64") target="darwin-arm64" ;; + *) target="linux-amd64" ;; esac fi