mirror of https://github.com/sbt/sbt.git
fix: Refer to universal sbtn in detectNativeClient (#8810)
** Problem ** sbtn-x86_64-apple-darwin doesn't exist anymore ** Solution ** point to universal binary instead
This commit is contained in:
parent
87414a8733
commit
e007fcf6dc
2
sbt
2
sbt
|
|
@ -797,7 +797,7 @@ detectNativeClient() {
|
|||
arch=$(uname -m)
|
||||
[[ -f "${sbt_bin_dir}/sbtn-${arch}-pc-linux" ]] && sbtn_command="${sbt_bin_dir}/sbtn-${arch}-pc-linux"
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
[[ -f "${sbt_bin_dir}/sbtn-x86_64-apple-darwin" ]] && sbtn_command="${sbt_bin_dir}/sbtn-x86_64-apple-darwin"
|
||||
[[ -f "${sbt_bin_dir}/sbtn-universal-apple-darwin" ]] && sbtn_command="${sbt_bin_dir}/sbtn-universal-apple-darwin"
|
||||
elif [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "win32" ]]; then
|
||||
[[ -f "${sbt_bin_dir}/sbtn-x86_64-pc-win32.exe" ]] && sbtn_command="${sbt_bin_dir}/sbtn-x86_64-pc-win32.exe"
|
||||
elif [[ "$OSTYPE" == "freebsd"* ]]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue