Changeset 5f81a8de for launchers/common


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.

Location:
launchers/common/src/main/scala/net/i2p/launchers
Files:
1 added
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • launchers/common/src/main/scala/net/i2p/launchers/PartialDeployment.scala

    rf6273a1 r5f81a8de  
    1313/**
    1414  *
    15   * OSXDeployment
     15  * NOTE: Work in progress: Originally written for OSX launcher - but will be used in BB launcher.
     16  *
     17  * PartialXDeployment
    1618  *
    1719  * This class can be a bit new for java developers. In Scala, when inherit other classes,
     
    7779  * @since 0.9.35
    7880  */
    79 class OSXDeployment extends
     81class PartialDeployment extends
    8082  DeployProfile(
    8183    OSXDefaults.getOSXConfigDirectory.getAbsolutePath,
  • launchers/common/src/main/scala/net/i2p/launchers/RouterLauncher.scala

    rf6273a1 r5f81a8de  
    22
    33import java.io.File
     4
     5import scala.concurrent.Future
     6import scala.sys.process.Process
    47
    58
     
    1114  */
    1215abstract class RouterLauncher {
    13   def runRouter(basePath: File, args: Array[String]): Unit
     16  def runRouter(basePath: File, args: Array[String]): Future[Process]
    1417
    15   def runRouter(args: Array[String]): Unit
     18  def runRouter(args: Array[String]): Future[Process]
    1619}
Note: See TracChangeset for help on using the changeset viewer.