Skip to content

Commit

Permalink
fix install script to use the updated target name
Browse files Browse the repository at this point in the history
  • Loading branch information
laureanray committed Jun 29, 2023
1 parent b87b309 commit f61a10e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Write-Output "Run 'clibgen --help' to get started"
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f61a10e

Please sign in to comment.