source: launchers/build.sbt @ a3a8ee1

Last change on this file since a3a8ee1 was a3a8ee1, checked in by meeh <meeh@…>, 2 years ago

Major update for the OSX Launcher code. Now it will bundle
installer resources with the fat jar (we add an exclusion list later)
which the base directory will be built(or updated if lacking files) upon
startup of the I2P router. This is done by the OSXDeployment class which
is an extension for the DeployProfile? class written for Mac OS X.

Since the app bundle itself should be R/O, we use ~/Library/I2P as base path,
and continue using ~/Library/Application? Support/i2p as config path. The BB
code will have other paths.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1import sbt._
2import Keys._
3
4scalaVersion in Global := "2.11.11"
5
6resolvers ++= Seq(
7  DefaultMavenRepository,
8  Resolver.mavenLocal,
9  Resolver.sonatypeRepo("releases"),
10  Resolver.typesafeRepo("releases"),
11  Resolver.sbtPluginRepo("releases")
12)
13
14lazy val commonSettings = Seq(
15  organization := "net.i2p",
16  scalaVersion := "2.11.11", // We have to use Scala 11 as long as we're going to support JRE 1.7
17  version      := "0.1.0-SNAPSHOT",
18  maintainer := "Meeh <mikalv@mikalv.net>",
19  packageSummary := "The Invisible Internet Project",
20  packageDescription := "Blabla"
21)
22
23lazy val common = (project in file("common"))
24  .settings(
25    commonSettings,
26    name         := "LauncherCommon"
27  )
28
29lazy val browserbundle = (project in file("browserbundle"))
30  .settings(
31    commonSettings,
32    name         := "RouterLaunchApp",
33    assemblyJarName in assembly := s"${name.value}-${version.value}.jar",
34    mainClass in assembly := Some("net.i2p.RouterLauncherApp")
35  ).dependsOn(common)
36
37lazy val macosx = (project in file("macosx"))
38  .settings(
39    commonSettings,
40    name         := "MacI2PLauncher",
41    assemblyJarName in assembly := s"${name.value}-${version.value}.jar",
42    mainClass in assembly := Some("net.i2p.MacOSXRouterLauncherApp")
43  ).dependsOn(common)
44
45
46lazy val root = (project in file("."))
47  .aggregate(common, browserbundle, macosx)
48
49scalacOptions in Compile := Seq("-deprecated")
50
51fork := true
52
53run / javaOptions += "-Xmx512M"
54run / connectInput := true
Note: See TracBrowser for help on using the repository browser.