- Timestamp:
- May 1, 2018 3:21:04 AM (3 years ago)
- Branches:
- master
- Children:
- 6b0a102c
- Parents:
- 2d15f8e1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
launchers/macosx/build.sbt
r2d15f8e1 r975d8a0 21 21 ) 22 22 23 // Pointing the resources directory to the "installer" directory24 resourceDirectory in Compile := baseDirectory.value / ".." / ".." / "installer" / "resources"25 23 lazy val resDir = new File("./../installer/resources") 26 24 lazy val i2pBuildDir = new File("./../build") 27 25 lazy val warsForCopy = i2pBuildDir.list.filter { f => f.endsWith(".war") } 28 26 lazy val jarsForCopy = i2pBuildDir.list.filter { f => f.endsWith(".jar") } 27 28 29 30 31 // Pointing the resources directory to the "installer" directory 32 resourceDirectory in Compile := baseDirectory.value / ".." / ".." / "installer" / "resources" 33 34 // Unmanaged classpath will be available at compile time 35 unmanagedClasspath in Compile ++= Seq( 36 baseDirectory.value / ".." / ".." / "build" / "*.jar", 37 baseDirectory.value / ".." / ".." / "router" / "java" / "src" 38 ) 39 40 // Please note the difference between browserbundle, this has 41 // the "in Compile" which limit it's scope to that. 42 //unmanagedBase in Compile := baseDirectory.value / ".." / ".." / "build" 43 44 libraryDependencies ++= Seq( 45 "net.i2p" % "router" % i2pVersion % Compile 46 ) 47 48 49 //assemblyOption in assembly := (assemblyOption in assembly).value.copy(prependShellScript = Some(defaultShellScript)) 50 51 assemblyJarName in assembly := s"${name.value}-${version.value}" 52 53 54 // TODO: MEEH: Add assemblyExcludedJars and load the router from own jar files, to handle upgrades better. 55 // In fact, most likely the bundle never would need an update except for the router jars/wars. 29 56 30 57 convertToICNSTask := { … … 37 64 val paths = Map[String,File]( 38 65 "execBundlePath" -> new File(bundleBuildPath, "I2P.app/Contents/MacOS"), 39 40 66 "resBundlePath" -> new File(bundleBuildPath, "I2P.app/Contents/Resources"), 67 "i2pbaseBunldePath" -> new File(bundleBuildPath, "I2P.app/Contents/Resources/i2pbase"), 41 68 "i2pJarsBunldePath" -> new File(bundleBuildPath, "I2P.app/Contents/Resources/i2pbase/lib"), 42 69 "webappsBunldePath" -> new File(bundleBuildPath, "I2P.app/Contents/Resources/i2pbase/webapps") 43 70 ) 44 71 paths.map { case (s,p) => p.mkdirs() } … … 61 88 warsForCopy.map { j => IO.copyFile( new File(i2pBuildDir, j), new File(paths.get("i2pJarsBunldePath").get, j) ) } 62 89 } 63 64 // Unmanaged classpath will be available at compile time65 unmanagedClasspath in Compile ++= Seq(66 baseDirectory.value / ".." / ".." / "build" / "*.jar",67 baseDirectory.value / ".." / ".." / "router" / "java" / "src"68 )69 70 // Please note the difference between browserbundle, this has71 // the "in Compile" which limit it's scope to that.72 //unmanagedBase in Compile := baseDirectory.value / ".." / ".." / "build"73 74 libraryDependencies ++= Seq(75 "net.i2p" % "router" % i2pVersion % Compile76 )77 78 79 //assemblyOption in assembly := (assemblyOption in assembly).value.copy(prependShellScript = Some(defaultShellScript))80 81 assemblyJarName in assembly := s"${name.value}-${version.value}"
Note: See TracChangeset
for help on using the changeset viewer.