Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Mac OS X Packaging

mkbundle now creates a dmg with the .app and necessary license files.
  • Loading branch information...
commit c8850b5acf9c10c9f3def41591aae46b3060c07f 1 parent b5e84f1
Matt Zweig authored
4  PACKAGING
@@ -57,6 +57,10 @@ normally but I was unable to get this working.)
57 57
 Be sure to test the final app bundle on a computer without Xcode or the
58 58
 frameworks installed to ensure static linking, etc. worked.
59 59
 
  60
+Mac OS X has otool for analyzing object files.  Run "otool -L epiar" to check
  61
+for dynamically linked libraries.  Only standard libraries should be included in a
  62
+publicly distributed executable.
  63
+
60 64
 OS X apps are typically distributed as a .dmg file, which is a compressed
61 65
 disk image file. Users are used to downloading these (they typically then
62 66
 auto-mount and open a Finder window) and then merely dragging the Epiar
8  configure.in
... ...
@@ -1,5 +1,5 @@
1 1
 PACKAGE=epiar
2  
-VERSION=0.2.0
  2
+VERSION=0.4.2
3 3
 
4 4
 dnl Init
5 5
 AC_INIT(README)
@@ -26,6 +26,12 @@ LIBS="$LIBS -lfreetype"
26 26
 dnl Include FTGL
27 27
 LIBS="$LIBS -lftgl"
28 28
 
  29
+dnl Static path to dynamic Libraries.
  30
+dnl LIBS="$LIBS /opt/local/lib/libfreetype.a"
  31
+dnl LIBS="$LIBS /opt/local/lib/libftgl.a"
  32
+dnl LIBS="$LIBS /opt/local/lib/libxml2.a"
  33
+dnl LIBS="$LIBS /opt/local/lib/libz.a"
  34
+
29 35
 case "$target" in *-*-linux*)
30 36
 	CFLAGS="$CFLAGS -I/usr/include/freetype2"
31 37
 esac
34  mkbundle.sh 100644 → 100755
... ...
@@ -1,7 +1,29 @@
1 1
 #!/usr/bin/env bash
2  
-mkdir -p Epiar.app/Contents/MacOS
3  
-cp Epiar Epiar.app/Contents/MacOS
4  
-cp -r Resources Epiar.app/Contents/
5  
-cp Info.plist Epiar.app/Contents/
6  
-cp Resources/Graphics/Epiar_Icon.icns Epiar.app/Contents/Resources/
7  
-rm -rf Epiar.app/Contents/Resources/Graphics/*.xcf
  2
+EPIAR_VERSION_FULL=`awk '$2 == "EPIAR_VERSION_FULL" {print $3}' Source/version.h | tr -d '"'`
  3
+echo "Update the version Number in the Info.plist to $EPIAR_VERSION_FULL."
  4
+defaults write `pwd`/Info CFBundleShortVersionString "$EPIAR_VERSION_FULL"
  5
+defaults read `pwd`/Info
  6
+
  7
+DMG_LOC=`pwd`/Epiar$EPIAR_VERSION_FULL/
  8
+APP_LOC=$DMG_LOC/Epiar.app/
  9
+echo "Creating Epiar.app Package at $APP_LOC"
  10
+mkdir -p $APP_LOC/Contents/MacOS
  11
+cp Epiar $APP_LOC/Contents/MacOS
  12
+cp -r Resources $APP_LOC/Contents/
  13
+cp Info.plist $APP_LOC/Contents/
  14
+cp Resources/Graphics/Epiar_Icon.icns $APP_LOC/Contents/Resources/
  15
+
  16
+# The .xcf files aren't used at run time
  17
+# Deleting them saves 5.5 Megabytes
  18
+echo "Removing unneeded files."
  19
+rm -rf $APP_LOC/Contents/Resources/Graphics/*.xcf
  20
+
  21
+echo "Adding README and LICENSE files."
  22
+cp AUTHORS $DMG_LOC
  23
+cp COPYING $DMG_LOC
  24
+cp LICENSE* $DMG_LOC
  25
+cp README $DMG_LOC
  26
+
  27
+# Package Epiar into a .dmg 
  28
+echo "Creating Epiar dmg..."
  29
+hdiutil create Epiar$EPIAR_VERSION_FULL.dmg -srcfolder $DMG_LOC

0 notes on commit c8850b5

Please sign in to comment.
Something went wrong with that request. Please try again.