1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

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

Thanks to Seyyed Razi Alavizadeh for create script and images
This commit is contained in:
nowrep 2014-02-05 01:37:26 +01:00
parent 98307a01dc
commit 9fd0508e53
6 changed files with 37 additions and 6 deletions

View File

@ -65,9 +65,9 @@ On Linux/Unix: To install QupZilla, run this command: (it may be necessary to ru
$ 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.

BIN
mac/QupZilla-template.dmg Normal file

Binary file not shown.

27
mac/create_dmg.sh Executable file
View File

@ -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

View File

@ -1,15 +1,15 @@
#!/bin/bash
#
# Usage: ./macdeploy.sh [<full-path-to-macdeployqt>]
#
#
# macdeployqt is usually located in QTDIR/bin/macdeployqt
# If path to macdeployqt is not specified, using it from PATH
COMMAND="macdeployqt"
MACDEPLOYQT="macdeployqt"
LIBRARY_NAME="libQupZilla.1.dylib"
if [ -n "$1" ]; then
COMMAND=$1
MACDEPLOYQT=$1
fi
# cd to directory with bundle
@ -33,4 +33,8 @@ do
done
# run macdeployqt
$COMMAND QupZilla.app
$MACDEPLOYQT QupZilla.app
# create final dmg image
./create_dmg.sh