Last change
on this file since 8c10ec9 was
8c10ec9,
checked in by meeh <meeh@…>, 3 years ago
|
Realised a better way to handle the build process of both the
Browser Bundle i2p launcher, as well as the upcoming Mac OS X
i2p launcher. They share some few properties and how code has
to be managed for both system's update managers and so on.
More details will be documentated in README.md files as well as
in those commit messages I now write 
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | import sbt.Keys._ |
---|
2 | |
---|
3 | resolvers ++= Seq( |
---|
4 | DefaultMavenRepository, |
---|
5 | Resolver.mavenLocal, |
---|
6 | Resolver.sonatypeRepo("releases"), |
---|
7 | Resolver.typesafeRepo("releases"), |
---|
8 | Resolver.sbtPluginRepo("releases") |
---|
9 | ) |
---|
10 | |
---|
11 | lazy val commonSettings = Seq( |
---|
12 | organization := "net.i2p", |
---|
13 | scalaVersion := "2.11.11", // We have to use Scala 11 as long as we're going to support JRE 1.7 |
---|
14 | version := "0.1.0-SNAPSHOT" |
---|
15 | ) |
---|
16 | |
---|
17 | |
---|
18 | lazy val browserbundle = (project in file("browserbundle")) |
---|
19 | .settings( |
---|
20 | commonSettings, |
---|
21 | name := "RouterLaunchApp", |
---|
22 | assemblyJarName in assembly := s"${name.value}-${version.value}.jar", |
---|
23 | mainClass in assembly := Some("net.i2p.RouterLauncherApp") |
---|
24 | ) |
---|
25 | |
---|
26 | lazy val macosx = (project in file("macosx")) |
---|
27 | .settings( |
---|
28 | commonSettings, |
---|
29 | name := "RouterLaunchApp", |
---|
30 | assemblyJarName in assembly := s"${name.value}-${version.value}.jar", |
---|
31 | mainClass in assembly := Some("net.i2p.MacOSXRouterLauncherApp") |
---|
32 | ) |
---|
33 | |
---|
34 | |
---|
35 | lazy val root = (project in file(".")) |
---|
36 | .aggregate(browserbundle, macosx) |
---|
37 | |
---|
38 | |
---|
39 | |
---|
40 | |
---|
41 | fork := true |
---|
42 | |
---|
43 | run / javaOptions += "-Xmx512M" |
---|
44 | run / connectInput := true |
---|
Note: See
TracBrowser
for help on using the repository browser.