diff --git a/images/macos/provision/configuration/preimagedata.sh b/images/macos/provision/configuration/preimagedata.sh index de95e4b9..47cc926c 100644 --- a/images/macos/provision/configuration/preimagedata.sh +++ b/images/macos/provision/configuration/preimagedata.sh @@ -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 < $imagedata_file EOF echo "export ImageVersion=$image_version" >> $HOME/.bashrc -echo "export ImageOS=$IMAGE_OS" >> $HOME/.bashrc \ No newline at end of file +echo "export ImageOS=$IMAGE_OS" >> $HOME/.bashrc