Simplify the process of building the universal bundle on the macOS
This commit is contained in:
parent
c1b2811bbf
commit
e26c2873db
6 changed files with 28 additions and 8 deletions
|
|
@ -9,6 +9,20 @@
|
|||
#
|
||||
|
||||
BUNDLE=TuxPaint.app
|
||||
|
||||
if [[ ! -d "$BUNDLE" ]]; then
|
||||
ARCHBUNDLE=TuxPaint-$(uname -m).app
|
||||
|
||||
if [[ -d "$ARCHBUNDLE" ]]; then
|
||||
echo " $BUNDLE missing. Did you forget to either run 'macos/build-universal.sh' first,"
|
||||
echo " or rename $ARCHBUNDLE to $BUNDLE first?"
|
||||
else
|
||||
echo " Did you forget to 'make' $ARCHBUNDLE first?"
|
||||
fi 1>&2
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TEMP_DMG=temp.dmg
|
||||
TEMP_DMG_SIZE=`expr \`du -sm "$BUNDLE" | cut -f1\` \* 15 / 10`m
|
||||
FINAL_DMG=TuxPaint.dmg
|
||||
|
|
@ -16,7 +30,6 @@ VOLNAME="Tux Paint"
|
|||
ICON="macos/tuxpaint.icns"
|
||||
BACKGROUND="macos/background.png"
|
||||
|
||||
|
||||
echo " * Creating the temporary image..."
|
||||
hdiutil create "$TEMP_DMG" -ov -fs HFS+ -size "$TEMP_DMG_SIZE" -volname "$VOLNAME" \
|
||||
&& VOLUME=`hdiutil attach "$TEMP_DMG" -nobrowse -noverify -noautoopen | grep Apple_HFS | sed 's/^.*Apple_HFS[[:blank:]]*//'` \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue