[Mac] macdeploy.sh now also creates a dmg image

Thanks to Seyyed Razi Alavizadeh for create script and images
remotes/origin/falkon
nowrep 12 years ago
parent 98307a01dc
commit 9fd0508e53
  1. 4
      README.md
  2. BIN
      mac/QupZilla-template.dmg
  3. 27
      mac/create_dmg.sh
  4. BIN
      mac/images/qupzilla-dmg-background.png
  5. BIN
      mac/images/qupzilla-dmg-icon.png
  6. 10
      mac/macdeploy.sh

@ -65,9 +65,9 @@ On Linux/Unix: To install QupZilla, run this command: (it may be necessary to ru
$ make install $ make install
On Mac OS X: To deploy QupZilla in bundle, run this command: On Mac OS X: To deploy QupZilla in dmg image, run this command:
$ ./scripts/macdeploy.sh full-path-to-macdeployqt $ ./mac/macdeploy.sh full-path-to-macdeployqt
You need to specify path to `macdeployqt` only if it is not in PATH. You need to specify path to `macdeployqt` only if it is not in PATH.

Binary file not shown.

@ -0,0 +1,27 @@
#!/bin/bash
BUNDLE_PATH=bin
test -d bin || BUNDLE_PATH=../bin
echo "We just want to make sure it's not in use"
hdiutil detach /tmp/tmp-release-qupzilla
echo "Creating writable DMG from template"
hdiutil convert QupZilla-template.dmg -format UDRW -o /tmp/tmp-qupzilla.dmg
echo "Attach DMG for write"
hdiutil attach /tmp/tmp-qupzilla.dmg -mountpoint /tmp/tmp-qupzilla-release
echo "Copying…"
cp -fpR $BUNDLE_PATH/QupZilla.app/Contents /tmp/tmp-qupzilla-release/QupZilla.app
hdiutil detach /tmp/tmp-qupzilla-release
echo "Creating final compressed(bz2) DMG…"
rm $BUNDLE_PATH/QupZilla.dmg
hdiutil convert /tmp/tmp-qupzilla.dmg -format UDBZ -o $BUNDLE_PATH/QupZilla.dmg
echo "Removing temp files…"
rm /tmp/tmp-qupzilla.dmg
exit

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

@ -5,11 +5,11 @@
# macdeployqt is usually located in QTDIR/bin/macdeployqt # macdeployqt is usually located in QTDIR/bin/macdeployqt
# If path to macdeployqt is not specified, using it from PATH # If path to macdeployqt is not specified, using it from PATH
COMMAND="macdeployqt" MACDEPLOYQT="macdeployqt"
LIBRARY_NAME="libQupZilla.1.dylib" LIBRARY_NAME="libQupZilla.1.dylib"
if [ -n "$1" ]; then if [ -n "$1" ]; then
COMMAND=$1 MACDEPLOYQT=$1
fi fi
# cd to directory with bundle # cd to directory with bundle
@ -33,4 +33,8 @@ do
done done
# run macdeployqt # run macdeployqt
$COMMAND QupZilla.app $MACDEPLOYQT QupZilla.app
# create final dmg image
./create_dmg.sh
Loading…
Cancel
Save