[macos] prepare repository for ARM64 arch (#7396)

This commit is contained in:
Alexey-Ayupov
2023-05-12 13:30:13 +02:00
committed by GitHub
parent b6c7afbb26
commit 8b099099d9
35 changed files with 571 additions and 188 deletions

View File

@@ -39,6 +39,15 @@ download_with_retries() {
return 1
}
is_VenturaArm64() {
arch=$(get_arch)
if [ "$OSTYPE" = "darwin22" ] && [ $arch = "arm64" ]; then
true
else
false
fi
}
is_Ventura() {
if [ "$OSTYPE" = "darwin22" ]; then
true
@@ -213,3 +222,12 @@ get_github_package_download_url() {
close_finder_window() {
osascript -e 'tell application "Finder" to close windows'
}
get_arch() {
arch=$(arch)
if [[ $arch == "arm64" ]]; then
echo "arm64"
else
echo "x64"
fi
}