Skip to content

Commit 8047367

Browse files
[macos13] Fix preimagedata for arm64 (#8488)
1 parent d71a0fe commit 8047367

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

images/macos/provision/configuration/preimagedata.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@
22

33
source ~/utils/utils.sh
44

5+
arch=$(get_arch)
56
imagedata_file="$HOME/imagedata.json"
67
image_version=$(echo $IMAGE_VERSION | cut -d _ -f 2)
78
os_name=$(sw_vers -productName)
89
os_version=$(sw_vers -productVersion)
910
os_build=$(sw_vers -buildVersion)
1011
label_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
1318
release_label="macOS-${label_version}"
1419

1520
if is_Ventura; then
@@ -34,4 +39,4 @@ cat <<EOF > $imagedata_file
3439
EOF
3540

3641
echo "export ImageVersion=$image_version" >> $HOME/.bashrc
37-
echo "export ImageOS=$IMAGE_OS" >> $HOME/.bashrc
42+
echo "export ImageOS=$IMAGE_OS" >> $HOME/.bashrc

0 commit comments

Comments
 (0)