Use the new packaging directory for MacOSX specific files, and provide shell script workaround to make the svg icon reachable.

- Make use of the new packaging directory.
- Set a current directory for subsurface to find the svg icon.  There might be a pretter solution to this.
- Somehow subsurface doesn't behave properly in the Dock.  Running it in the background without Dock integration until we figure out why.

Signed-Off-By: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
This commit is contained in:
Henrik Brautaset Aronsen 2011-10-30 22:27:33 +01:00 committed by Henrik Brautaset Aronsen
parent f231ab0943
commit b1a1376f3b
5 changed files with 12 additions and 7 deletions

View file

@ -23,9 +23,7 @@ DESKTOPFILE = $(NAME).desktop
MANFILES = $(NAME).1
MACOSXINSTALL = /Applications/Subsurface.app
MACOSXICONFILE = macosx/Subsurface.icns
MACOSXINFOFILE = macosx/Info.plist
MACOSXPKGFILE = macosx/PkgInfo
MACOSXFILES = packaging/macosx
# find libdivecomputer
# First deal with the cross compile environment.
@ -109,9 +107,11 @@ install-macosx: $(NAME)
$(INSTALL) -d -m 755 $(MACOSXINSTALL)/Contents/Resources
$(INSTALL) -d -m 755 $(MACOSXINSTALL)/Contents/MacOS
$(INSTALL) $(NAME) $(MACOSXINSTALL)/Contents/MacOS/
$(INSTALL) $(MACOSXINFOFILE) $(MACOSXINSTALL)/Contents/
$(INSTALL) $(MACOSXPKGFILE) $(MACOSXINSTALL)/Contents/
$(INSTALL) $(MACOSXICONFILE) $(MACOSXINSTALL)/Contents/Resources/
$(INSTALL) $(MACOSXFILES)/subsurface.sh $(MACOSXINSTALL)/Contents/MacOS/
$(INSTALL) $(MACOSXFILES)/PkgInfo $(MACOSXINSTALL)/Contents/
$(INSTALL) $(MACOSXFILES)/Info.plist $(MACOSXINSTALL)/Contents/
$(INSTALL) $(ICONFILE) $(MACOSXINSTALL)/Contents/Resources/
$(INSTALL) $(MACOSXFILES)/Subsurface.icns $(MACOSXINSTALL)/Contents/Resources/
parse-xml.o: parse-xml.c dive.h
$(CC) $(CFLAGS) $(GLIB2CFLAGS) -c $(XML2CFLAGS) parse-xml.c

View file

@ -13,7 +13,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleExecutable</key>
<string>subsurface</string>
<string>subsurface.sh</string>
<key>CFBundleIdentifier</key>
<string>torvalds.subsurface</string>
</dict>

5
packaging/macosx/subsurface.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
cd `dirname $0`/../Resources
../MacOS/subsurface &
exit 0