File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
images/macos/provision/configuration Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 22
33source ~ /utils/utils.sh
44
5+ arch=$( get_arch)
56imagedata_file=" $HOME /imagedata.json"
67image_version=$( echo $IMAGE_VERSION | cut -d _ -f 2)
78os_name=$( sw_vers -productName)
89os_version=$( sw_vers -productVersion)
910os_build=$( sw_vers -buildVersion)
1011label_version=$( echo $os_version | cut -d. -f1)
1112
12- image_label=" macos-${label_version} "
13+ if [[ $arch == " arm64" ]]; then
14+ image_label=" macos-${label_version} -arm64"
15+ else
16+ image_label=" macos-${label_version} "
17+ fi
1318release_label=" macOS-${label_version} "
1419
1520if is_Ventura; then
@@ -34,4 +39,4 @@ cat <<EOF > $imagedata_file
3439EOF
3540
3641echo " export ImageVersion=$image_version " >> $HOME /.bashrc
37- echo " export ImageOS=$IMAGE_OS " >> $HOME /.bashrc
42+ echo " export ImageOS=$IMAGE_OS " >> $HOME /.bashrc
You can’t perform that action at this time.
0 commit comments