From 5f81a8de591c168ccaa619f782c98a1c9b34722c Mon Sep 17 00:00:00 2001 From: meeh Date: Sat, 5 May 2018 23:34:35 +0000 Subject: [PATCH] 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. --- .mtn-ignore | 1 + build.xml | 16 ++-- history.txt | 11 +++ .../i2p/launchers/CompleteDeployment.scala | 48 ++++++++++ ...ployment.scala => PartialDeployment.scala} | 6 +- .../net/i2p/launchers/RouterLauncher.scala | 7 +- launchers/macosx/Info.plist | 47 ++++++++++ launchers/macosx/build.sbt | 85 ++++++++++++------ .../i2p/launchers/osx/LauncherAppMain.scala | 54 +++++++++++- .../launchers/osx/MacOSXRouterLauncher.scala | 88 +++++++++++++++---- .../i2p/launchers/osx/SystemTrayManager.scala | 27 ++++++ 11 files changed, 327 insertions(+), 63 deletions(-) create mode 100644 launchers/common/src/main/scala/net/i2p/launchers/CompleteDeployment.scala rename launchers/common/src/main/scala/net/i2p/launchers/{OSXDeployment.scala => PartialDeployment.scala} (98%) create mode 100644 launchers/macosx/Info.plist create mode 100644 launchers/macosx/src/main/scala/net/i2p/launchers/osx/SystemTrayManager.scala diff --git a/.mtn-ignore b/.mtn-ignore index 5990886188..41aa1db6e8 100644 --- a/.mtn-ignore +++ b/.mtn-ignore @@ -59,6 +59,7 @@ launchers/target launchers/project/target launchers/common/target launchers/output +launchers/project/project # Reporting sloccount.sc diff --git a/build.xml b/build.xml index ffbddda6e3..4c7fbed43c 100644 --- a/build.xml +++ b/build.xml @@ -301,22 +301,22 @@ - + - + - + - - + + - - + + @@ -907,7 +907,7 @@ - +