forked from I2P_Developers/i2p.i2p
Still WIP, but I've added a new sbt plugin named
sbt-native-packager for future rpm/deb/windows and maybe even OSX packages. Also, the macosx sbt project now has a task named buildAppBundleTask and which will produce an I2P.app and copy over needed directories/jars/wars which later needs to be extracted to an writeable area which would be i2p base directory in runtime. The MacOSXRouterLauncherApp contains more information about how the executable in the OS X bundle will locate our R/O i2pbase so it can copy it to a writable area. The R/O is also to ensure valid signature on the bundle. At last, this approach is done casue letting an Mach-O binary load libjvm.dylib was proved unstable, so MacOSXRouterLauncherApp will rather use an JNI module to load the needed glue with the Mac OS X system.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import sbt.Keys._
|
||||
import sbt._
|
||||
import Keys._
|
||||
|
||||
|
||||
resolvers ++= Seq(
|
||||
DefaultMavenRepository,
|
||||
@@ -11,7 +13,10 @@ resolvers ++= Seq(
|
||||
lazy val commonSettings = Seq(
|
||||
organization := "net.i2p",
|
||||
scalaVersion := "2.11.11", // We have to use Scala 11 as long as we're going to support JRE 1.7
|
||||
version := "0.1.0-SNAPSHOT"
|
||||
version := "0.1.0-SNAPSHOT",
|
||||
maintainer := "Meeh <mikalv@mikalv.net>",
|
||||
packageSummary := "The Invisible Internet Project",
|
||||
packageDescription := "Blabla"
|
||||
)
|
||||
|
||||
|
||||
@@ -26,7 +31,7 @@ lazy val browserbundle = (project in file("browserbundle"))
|
||||
lazy val macosx = (project in file("macosx"))
|
||||
.settings(
|
||||
commonSettings,
|
||||
name := "RouterLaunchApp",
|
||||
name := "MacI2PLauncher",
|
||||
assemblyJarName in assembly := s"${name.value}-${version.value}.jar",
|
||||
mainClass in assembly := Some("net.i2p.MacOSXRouterLauncherApp")
|
||||
)
|
||||
@@ -36,8 +41,6 @@ lazy val root = (project in file("."))
|
||||
.aggregate(browserbundle, macosx)
|
||||
|
||||
|
||||
|
||||
|
||||
fork := true
|
||||
|
||||
run / javaOptions += "-Xmx512M"
|
||||
|
||||
Reference in New Issue
Block a user