/
bundle.sbt
49 lines (37 loc) · 1.52 KB
/
bundle.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import com.typesafe.sbt.packager.windows._
import com.typesafe.sbt.SbtNativePackager.Windows
name := "bitcoin-s-bundle"
enablePlugins(WindowsPlugin)
mainClass := Some("org.bitcoins.bundle.gui.BundleGUI")
publish / skip := true
// Fork a new JVM for 'run' and 'test:run' to avoid JavaFX double initialization problems
fork := true
assembly / mainClass := Some("org.bitcoins.bundle.gui.BundleGUI")
assembly / assemblyJarName := s"${name.value}.jar"
//need compatability with windows versioning scheme which is
//w.x.y.z
Windows / version := previousStableVersion.value.get
assembly / assemblyMergeStrategy := {
case PathList("META-INF", _ @_*) => MergeStrategy.discard
case PathList("reference.conf", _ @_*) => MergeStrategy.concat
case _ => MergeStrategy.first
}
Compile / doc := (target.value / "none")
// general package information (can be scoped to Windows)
maintainer := "Chris Stewart <stewart.chris1234@gmail.com>"
// Will say "Welcome to the <packageSummary> Setup Wizard"
packageSummary := "Bitcoin-S"
// Will be used for drop down menu in setup wizard
packageDescription := "Bitcoin-S"
// wix build information
wixProductId := java.util.UUID.randomUUID().toString
wixProductUpgradeId := java.util.UUID.randomUUID().toString
// Adding the wanted wixFeature:
wixFeatures += WindowsFeature(
id = "shortcuts",
title = "Shortcuts in start menu",
desc = "Add shortcuts for execution and uninstall in start menu",
components = Seq(
AddShortCuts(Seq("bin/bitcoin-s-bundle.bat"))
)
)