mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix setup.dmg prepare on M1 Mac.
This commit is contained in:
parent
35142476b2
commit
7a9273eca9
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "macstore" ]; then
|
||||||
cp -f tsetup_template.dmg tsetup.temp.dmg
|
cp -f tsetup_template.dmg tsetup.temp.dmg
|
||||||
TempDiskPath=`hdiutil attach -nobrowse -noautoopenrw -readwrite tsetup.temp.dmg | awk -F "\t" 'END {print $3}'`
|
TempDiskPath=`hdiutil attach -nobrowse -noautoopenrw -readwrite tsetup.temp.dmg | awk -F "\t" 'END {print $3}'`
|
||||||
cp -R "./$BundleName" "$TempDiskPath/"
|
cp -R "./$BundleName" "$TempDiskPath/"
|
||||||
bless --folder "$TempDiskPath/" --openfolder "$TempDiskPath/"
|
bless --folder "$TempDiskPath/"
|
||||||
hdiutil detach "$TempDiskPath"
|
hdiutil detach "$TempDiskPath"
|
||||||
hdiutil convert tsetup.temp.dmg -format UDBZ -ov -o "$SetupFile"
|
hdiutil convert tsetup.temp.dmg -format UDBZ -ov -o "$SetupFile"
|
||||||
rm tsetup.temp.dmg
|
rm tsetup.temp.dmg
|
||||||
|
|
Loading…
Add table
Reference in a new issue