Monday, May 4, 2015

Installing Infinute Kind AppBundler on OS X Yosemite

You need to install Xcode, JDK 7, Apache Ant, and Mercurial before build.


If you only want to download the jar file:
http://download.sqr5.com/appbundler/appbundler-1.0ea.jar


Bundle


1. Download the source


 ~/sources $ hg clone https://bitbucket.org/infinitekind/appbundler


2. Modify following parts in appbundler/build.xml


PLEASE SKIP THIS STEP!
(You no longer need to modify build.xml in the current version.)

Change:
<arg value="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk"></arg>

To:
<arg value="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk"></arg>


3. Create a build script to build and install appbundler-1.0ea.jar


 ~/sources $ touch build-appbundler.sh


Use your favorite editor and save the following into the file just created.

#!/bin/bash

PROJECTNAME=appbundler

setjdk17() {
    local COMMAND=/usr/libexec/java_home
    test -f $COMMAND && export JAVA_HOME=`$COMMAND -v 1.7`
    javac -version
}

set -e

SCRIPTDIR=$(cd $(dirname $BASH_SOURCE); pwd)
PROJECTROOT=$SCRIPTDIR/$PROJECTNAME

pushd $PROJECTROOT
setjdk17; ant clean package
popd

# Modify the ant path depending on your environment.
if [ -d /Applications/apache-ant-* ]; then
    cp -v $PROJECTROOT/appbundler/bin/appbundler-*.jar \
        /Applications/apache-ant-*/lib
fi

set +e

You can download the file at http://download.sqr5.com/appbundler/build_appbundler.sh


4. Execute the script

 ~/sources $ . build-appbundler.sh


That's it!


The Infinite Kind
http://infinitekind.com/

Infinite Kind AppBundler
https://bitbucket.org/infinitekind/appbundler

Apache Ant
http://ant.apache.org/

Mercurial
http://mercurial.selenic.com/


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.