indykish
indykish

Reputation: 31

What are the options to set base packaged directory for a package using sbt-native-packager?

I am trying to build a Debian package using sbt-native-packager as described in this build.sbt.

I set appName using

val appName = "megamgateway"

in project/Build.scala.

All works well. It is just that the contents are stored in /usr/share/megamgateway.

I'd like to have the contents under /usr/share/megam/gateway.

The only way I could find is to use

linuxPackageMapping

as shown here.

Before following along, I'd like to know about other approaches.

Upvotes: 1

Views: 221

Answers (1)

kardapoltsev
kardapoltsev

Reputation: 1088

You could try to add to your project settings

name := "gateway"
defaultLinuxInstallLocation := "/usr/share/megam/" 

Upvotes: 1

Related Questions