forked from bitcoin-s/krystal-bull
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
67 lines (53 loc) · 1.83 KB
/
build.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import com.typesafe.sbt.packager.windows._
import sbt.Resolver
name := "krystal-bull"
version := "1.4.0"
organization := "org.bitcoin-s"
libraryDependencies ++= Deps.core
fork / run := true
mainClass := Some("com.krystal.bull.gui.GUI")
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers +=
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
enablePlugins(ReproducibleBuildsPlugin,
JavaAppPackaging,
GraalVMNativeImagePlugin,
WindowsPlugin)
assembly / assemblyMergeStrategy := {
case PathList("META-INF", _ @_*) => MergeStrategy.discard
case PathList("reference.conf", _ @_*) => MergeStrategy.concat
case _ => MergeStrategy.first
}
Compile / doc := (target.value / "none")
scalacOptions ++= Seq("release", "11", "-Xfatal-warnings") ++
Seq(
"-unchecked",
"-feature",
"-deprecation",
"-Ywarn-dead-code",
"-Ywarn-value-discard",
"-Ywarn-unused",
"-unchecked",
"-deprecation",
"-feature",
"-Ypatmat-exhaust-depth",
"off"
)
// general package information (can be scoped to Windows)
maintainer := "Chris Stewart <[email protected]>"
// Will say "Welcome to the <packageSummary> Setup Wizard"
packageSummary := "Krystal Bull"
// Will be used for drop down menu in setup wizard
packageDescription := "Krystal Bull"
// 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/krystal-bull.bat"))
)
)