Fix setup.dmg prepare on M1 Mac.

This commit is contained in:
John Preston 2022-06-16 19:11:32 +04:00
parent 35142476b2
commit 7a9273eca9
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "macstore" ]; then
cp -f tsetup_template.dmg tsetup.temp.dmg
TempDiskPath=`hdiutil attach -nobrowse -noautoopenrw -readwrite tsetup.temp.dmg | awk -F "\t" 'END {print $3}'`
cp -R "./$BundleName" "$TempDiskPath/"
bless --folder "$TempDiskPath/" --openfolder "$TempDiskPath/"
bless --folder "$TempDiskPath/"
hdiutil detach "$TempDiskPath"
hdiutil convert tsetup.temp.dmg -format UDBZ -ov -o "$SetupFile"
rm tsetup.temp.dmg