mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
d3065d811a
These are only useful for me, but having them in git makes my life so much easier... Instead of using macdeployqt to create my DMG I use the tool that I used for Subsurface 3. This allows for much prettier DMG content as well. Fixes #329 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
43 lines
1.4 KiB
Bash
Executable file
43 lines
1.4 KiB
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# this simply automates the steps to create a DMG we can ship
|
|
#
|
|
# for this to work you need to have a custom build of MacPorts / gtk / etc
|
|
# with prefix=/Applications/Subsurface.app/Contents/Resources
|
|
# yes, that's a major hack, but otherwise gettext cannot seem to find
|
|
# the gtk related .mo files and localization is only partial
|
|
#
|
|
# run this from the top subsurface directory
|
|
|
|
# install location of yourway-create-dmg
|
|
DMGCREATE=../yoursway-create-dmg/create-dmg
|
|
|
|
# same git version magic as in the Makefile
|
|
# for the naming of volume and dmg we don't need the "always 3 digits"
|
|
# darwin version - the 'regular' version that has 2 digits for releases
|
|
# is better
|
|
VERSION=$(./scripts/get-version linux)
|
|
|
|
|
|
# first build and install Subsurface and then clean up the staging area
|
|
sudo rm -rf ./Subsurface.app
|
|
make
|
|
sudo make mac-deploy
|
|
|
|
# copy things into staging so we can create a nice DMG
|
|
rm -rf ./staging
|
|
mkdir ./staging
|
|
cp -a ./Subsurface.app ./staging
|
|
|
|
sudo sh ./packaging/macosx/sign
|
|
|
|
if [ -f ./Subsurface-$VERSION.dmg ]; then
|
|
rm ./Subsurface-$VERSION.dmg.bak
|
|
mv ./Subsurface-$VERSION.dmg ./Subsurface-$VERSION.dmg.bak
|
|
fi
|
|
|
|
$DMGCREATE --background ./packaging/macosx/DMG-Background.png \
|
|
--window-size 500 300 --icon-size 96 --volname Subsurface-$VERSION \
|
|
--app-drop-link 380 205 \
|
|
--volicon ~/src/subsurface/packaging/macosx/Subsurface.icns \
|
|
--icon "Subsurface" 110 205 ./Subsurface-$VERSION.dmg ./staging
|