Changeset 5f81a8de for build.xml


Ignore:
Timestamp:
May 5, 2018 11:34:35 PM (2 years ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
0a1191a
Parents:
f6273a1
Message:

Mac OS X Launcher - reborn - ALPHA!

TLDR;
Howto? ant osxLauncher
Privacy Notes? If you don't got SBT, a bash script will trigger

download of SBT for you with task osxLauncher.

Results? open ./launchers/output
"Binary" App Bundle name: I2P.app
Runtime base directory? ~/Library/I2P
Runtime config directory? untouched.

After talk on IRC with zzz, I rewrote the logic since we could
start with a simple deploy, for a faster alpha version ready :)

SBT will build a zip file from the content of pkg-temp, which
CompleteDeployment?.scala will again unzip in runtime. Right now
it's quite basic, but the plan is to add version detection, so
it's capable of upgrading a already deployed I2P base directory.

OSXDeployment.scala is renamed to PartialDeployment?.scala for usage
in the browser bundle launcher, since it's going to be a subset of
the files found in pkg-temp.

A Info.plist is added to the launchers/macosx which is added to the
application bundle under building. Note that this differ from the one
in Start i2p router.app that's been here for years now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    rf6273a1 r5f81a8de  
    302302    <target name="bbLauncher" depends="build">
    303303        <sequential>
    304             <exec executable="sbt" dir="launcher" failonerror="true">
     304            <exec executable="sbt" dir="launchers" failonerror="true">
    305305                <arg value="browserbundle:clean" />
    306306            </exec>
    307             <exec executable="sbt" dir="launcher" failonerror="true">
     307            <exec executable="sbt" dir="launchers" failonerror="true">
    308308                <arg value="browserbundle:assembly" />
    309309            </exec>
     
    311311    </target>
    312312
    313     <target name="osxLauncher" depends="build">
     313    <target name="osxLauncher" depends="build,preppkg-osx">
    314314        <sequential>
    315             <exec executable="sbt" dir="launcher" failonerror="true">
    316                 <arg value="macosx:clean" />
     315            <exec executable="sbt" dir="launchers" failonerror="true">
     316                <arg value="macosx:cleanAllTask" />
    317317            </exec>
    318             <exec executable="sbt" dir="launcher" failonerror="true">
    319                 <arg value="macosx:assembly" />
     318            <exec executable="sbt" dir="launchers" failonerror="true">
     319                <arg value="macosx:buildAppBundleTask" />
    320320            </exec>
    321321        </sequential>
     
    908908                <pathelement location="build/i2p.jar" />
    909909                <pathelement location="build/router.jar" />
    910                 <pathelement location="${junit.home}/junit4.jar" />
     910                <pathelement location="${junit.home}/ant-junit4.jar" />
    911911                <pathelement location="${hamcrest.home}/hamcrest-all.jar" />
    912912            </classpath>
Note: See TracChangeset for help on using the changeset viewer.