[macos13] Fix preimagedata for arm64 (#8488)

This commit is contained in:
Shamil Mubarakshin
2023-10-09 15:34:51 +02:00
committed by GitHub
parent d71a0fe1a5
commit 804736733e

View File

@@ -2,6 +2,7 @@
source ~/utils/utils.sh
arch=$(get_arch)
imagedata_file="$HOME/imagedata.json"
image_version=$(echo $IMAGE_VERSION | cut -d _ -f 2)
os_name=$(sw_vers -productName)
@@ -9,7 +10,11 @@ os_version=$(sw_vers -productVersion)
os_build=$(sw_vers -buildVersion)
label_version=$(echo $os_version | cut -d. -f1)
image_label="macos-${label_version}"
if [[ $arch == "arm64" ]]; then
image_label="macos-${label_version}-arm64"
else
image_label="macos-${label_version}"
fi
release_label="macOS-${label_version}"
if is_Ventura; then
@@ -34,4 +39,4 @@ cat <<EOF > $imagedata_file
EOF
echo "export ImageVersion=$image_version" >> $HOME/.bashrc
echo "export ImageOS=$IMAGE_OS" >> $HOME/.bashrc
echo "export ImageOS=$IMAGE_OS" >> $HOME/.bashrc