Permalink
Browse files

Update OS X scripts, probably for last time!

  • Loading branch information...
1 parent 5acfb04 commit 88a6d6adaf7072744cf25d9a130b969bf559681c @joshf joshf committed Mar 7, 2013
Showing with 24 additions and 23 deletions.
  1. +13 −15 osx/README.markdown
  2. +10 −7 osx/build_osx.sh
  3. +1 −1 osx/emesene.sh
View
@@ -1,24 +1,25 @@
# Building emesene on OS X
-## Requirements
+## Requirements and Information
* [gtk binary](http://www.mediafire.com/download.php?6vl96yienoiofsm) (Prebuilt binary)
-* [Platypus](http://sveinbjorn.org/files/software/platypus.zip) (Once downloaded go to Prefs and click the "Install" button at the bottom)
-* [git] (http://git-scm.com/downloads)
+* [Platypus](http://sveinbjorn.org/files/software/platypus.zip) (Once downloaded go to Prefs and click the "Install" button at the bottom to install the command line tool)
+* [git](http://git-scm.com/downloads)
-## Building the latest version
+Before continuing, make sure the gtk binary folder is located in the emesene/osx directory
-```
-git clone https://github.com/emesene/emesene.git
-cd emesene/osx
-```
+Please note emesene.app will only work if it is in /Applications!
-Now drag the gtk folder you downloaded earlier into the osx directory.
+## Building the latest version in the repo
```
+git clone https://github.com/emesene/emesene.git
+cd emesene/osx
sh build_osx.sh
```
+This will create emesene.app in the emesene/dist directory
+
## Building a specific version
Using emesene version 2.12.9 as an example, change this to the version you want.
@@ -28,14 +29,11 @@ git clone https://github.com/emesene/emesene.git
cd emesene
git checkout v2.12.9
cd osx
-```
-
-Now drag the gtk folder you downloaded earlier into the osx directory.
-
-```
sh build_osx.sh
```
+This will create emesene.app in the emesene/dist directory
+
### Special Cases
If your building a version prior to 2.12.9 you will need to run these commands after git checkout:
@@ -61,7 +59,7 @@ If you are planning to release emesene run:
sh build_osx.sh dorelease
```
-This will create a DMG for you and mount it in Finder, you can then move the icons and set the DMG background. Once that is done go back to the script and press enter. A compressed DMG will then be built.
+This will create a DMG for you and mount it in Finder, you can then move the icons and set the DMG background. Once that is done go back to the script and press enter. A compressed DMG will then be built in the emesene/dist folder.
### Known Issues
View
@@ -6,12 +6,12 @@
version=`grep 'EMESENE_VERSION = ".*"' ../emesene/Info.py | cut -d '"' -f 2`
echo "############################################################################"
-echo "### Welcome to the emesene builder. Version 3.5 Copyright Josh Fradley ###"
+echo "### Welcome to the emesene builder. Version 3.6 Copyright Josh Fradley ###"
echo "############################################################################"
if ! [ -f "/usr/local/bin/platypus" ]
then
- echo "ERROR: Platpus is not installed..."
+ echo "ERROR: Platpus command line tool is not installed..."
exit
fi
@@ -21,21 +21,23 @@ then
exit
fi
-read -p "Preparing to build emesene $version. Press enter to continue..."
+read -p "Preparing to build emesene $version. Press enter to continue with the build..."
#Remove old builds
+echo "Removing previous builds..."
+
rm -rf ../dist
-#Create temp dir
+#Create new temp dir
mkdir ../dist
#Build the app with Platypus
-echo "Building app..."
+echo "Building application..."
/usr/local/bin/platypus -i 'emesene.icns' -a 'emesene' -o 'None' -p '/bin/sh' -u 'The emesene team and Josh Fradley' -I org.emesene.emesene -R 'emesene.sh' '../dist/emesene.app' > /dev/null 2>&1
echo "Setting version..."
#There is a bug in Platypus which sets CFBundle rather than CFBundleShortVersionString, should be fixed in Platypus 4.8
-defaults write ${PWD}/../dist/emesene.app/Contents/Info CFBundleVersion -string "350"
+defaults write ${PWD}/../dist/emesene.app/Contents/Info CFBundleVersion -string "360"
defaults write ${PWD}/../dist/emesene.app/Contents/Info CFBundleShortVersionString -string "$version"
echo "Bundling GTK..."
@@ -44,6 +46,7 @@ cp -r gtk ../dist/emesene.app/Contents/Resources/
echo "Bundling emesene..."
cp -r ../emesene ../dist/emesene.app/Contents/Resources/
+echo "Setting minimum OS..."
defaults write ${PWD}/../dist/emesene.app/Contents/Info LSMinimumSystemVersion -string "10.6"
if [[ "$1" == *dorelease* ]]
@@ -69,4 +72,4 @@ then
rm ../dist/emesenetemp.dmg
fi
-echo "Successfully built emesene $version"
+echo "Successfully built emesene $version."
View
@@ -1,6 +1,6 @@
#!/bin/sh
-#Copyright 2012 The emesene team and Josh Fradley (http://blog.emesene.org)
+#Copyright 2013 The emesene team and Josh Fradley (http://blog.emesene.org)
workdir=`dirname "$0"`

0 comments on commit 88a6d6a

Please sign in to comment.