From 189c8a73fc56426841308b0e9bd01cf6f8ccd700 Mon Sep 17 00:00:00 2001 From: Ben Carman Date: Mon, 31 May 2021 21:15:46 -0500 Subject: [PATCH] Include conf file --- app/bundle/bundle.sbt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/bundle/bundle.sbt b/app/bundle/bundle.sbt index b3aba2a17a59..dfd39b075425 100644 --- a/app/bundle/bundle.sbt +++ b/app/bundle/bundle.sbt @@ -47,3 +47,14 @@ wixFeatures += WindowsFeature( AddShortCuts(Seq("bin/bitcoin-s-bundle.bat")) ) ) + +Universal / mappings += { + // we are using the reference.conf as default application.conf + // the user can override settings here + val conf = (Compile / resourceDirectory).value / "application.conf" + conf -> "conf/application.conf" +} + +// add jvm parameter for typesafe config +bashScriptExtraDefines += """addJava "-Dconfig.file=${app_home}/../conf/application.conf"""" +batScriptExtraDefines += """addJava "-Dconfig.file=${app_home}/../conf/application.conf""""