我正在尝试构建一个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
?
答案 0 :(得分:0)
Native-packager提供了一种将dpkg-sig
命令调用到包签名的方法。这个命令应该做的伎俩
sbt debianSign
您需要安装dpkg-sig
。