Changeset 5056706


Ignore:
Timestamp:
Sep 5, 2012 9:36:24 PM (8 years ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
5244709, 6162908
Parents:
9fd2f1e
Message:

Added command scripts for osx to install i2p as a daemon in launchd.
.command extension make it possible to double click on it like bat files
in windows. Daemon is runned as the user who executes the command file.

Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    r9fd2f1e r5056706  
    769769            <fileset dir="installer/lib/wrapper/macosx/" excludes="*.txt" />
    770770        </copy>
     771        <copy file="installer/resources/net.i2p.router.plist.template" todir="pkg-temp/" />
     772        <copy file="installer/resources/install_i2p_service_osx.command" todir="pkg-temp/" />
     773        <copy file="installer/resources/uninstall_i2p_service_osx.command" todir="pkg-temp/" />
    771774    </target>
    772775
  • installer/install.xml

    r9fd2f1e r5056706  
    138138            <parsable targetfile="$INSTALL_PATH/runplain.sh" type="shell"> <os family="unix" /> </parsable>
    139139            <parsable targetfile="$INSTALL_PATH/Start I2P Router.app/Contents/MacOS/i2prouter" type="shell" os="mac" />
     140            <parsable targetfile="$INSTALL_PATH/net.i2p.router.plist.template" type="shell" os="mac" />
     141            <parsable targetfile="$INSTALL_PATH/install_i2p_service_osx.command" type="shell" os="mac" />
     142            <parsable targetfile="$INSTALL_PATH/uninstall_i2p_service_osx.command" type="shell" os="mac" />
    140143           
    141144            <conditions>
     
    187190            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
    188191                <args><arg value="$INSTALL_PATH/Start I2P Router.app" /></args></executable>
     192            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
     193                <args><arg value="$INSTALL_PATH/net.i2p.router.plist" /></args></executable>
     194            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
     195                <args><arg value="$INSTALL_PATH/install_i2p_service_osx.command" /></args></executable>
     196            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
     197                <args><arg value="$INSTALL_PATH/uninstall_i2p_service_osx.command" /></args></executable>
    189198            <executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
    190199                <args><arg value="$INSTALL_PATH/man" /></args></executable>
  • installer/resources/postinstall.sh

    r9fd2f1e r5056706  
    7575        cp ${wrapperpath}/libwrapper*.jnilib ./lib/
    7676        chmod 755 ./Start\ I2P\ Router.app/Contents/MacOS/i2prouter
     77        chmod 755 ./install_i2p_service_osx.command
     78        chmod 755 ./uninstall_i2p_service_osx.command
    7779        ;;
    7880    solaris )
     
    115117if [ ! `echo $HOST_OS  |grep osx` ]; then
    116118    rm -rf ./Start\ I2P\ Router.app
     119    rm -f install_i2p_service_osx.command
     120    rm -f install_i2p_service_osx.command
     121    rm -f net.i2p.router.plist.template
    117122    #rm -f I2P\ Router\ Console.webloc
    118123fi
Note: See TracChangeset for help on using the changeset viewer.