【发布时间】:2016-12-07 12:24:13
【问题描述】:
我正在尝试构建一个 debian 包,对其进行签名并使用 sbt-native-packager 发布它。
是否有如何使用 GPG id 签署 debian 包的示例?
这是我到目前为止所做的:
name := """play-scala-app-name"""
lazy val root = (project in file(".")).enablePlugins(PlayScala, DebianPlugin)
scalaVersion := "2.11.7"
libraryDependencies ++= Seq(
jdbc,
cache,
ws,
"org.scalatestplus.play" %% "scalatestplus-play" % "1.5.0-RC1" % Test,
"org.mockito" % "mockito-core" % "1.10.19"
)
resolvers += "scalaz-bintray" at "https://dl.bintray.com/scalaz/releases"
name in Debian := "app-name"
version in Debian := "1.0"
maintainer in Debian := "maintainer name <maintainer@mail.com>"
packageSummary := "app summary"
packageDescription := """app description"""
publishTo := Some("Debian repo" at "https://repo")
credentials += Credentials("Debian repo Manager", "my.artifact.repo.net", "admin", "admin123")
// how to add code to sign the package ?
那我启动sbt clean debian:packageBin debian:publish?
【问题讨论】: