sbt-macosxapp

Usage

Add the following line to your project/plugins.sbt file:

addSbtPlugin("de.choffmeister" % "sbt-macosxapp" % "0.0.1")

Add the following lines to you build.sbt file:

import de.choffmeister.sbt.MacOSXAppPlugin._

macosxAppSettings

macosxAppName := "My Application"

macosxAppMainClass := "com.domain.Application"

macosxAppIcon := Some(baseDirectory.value / "src/main/resources/icon.icns")

macosxAppJavaJVMOptions := Seq(
  "-Dapple.laf.useScreenMenuBar=true",
  "-Dapple.awt.UIElement=true"
)

Now you can run to generate the app package at target/My Application.app:

$ sbt macosxAppPackage

License

Published under the permissive MIT license.