签署并发布 debian 软件包
Sign and publish debian package
我正在尝试构建一个 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
?
Native-packager 提供了一种调用 dpkg-sig
命令对包进行签名的方法。这个命令应该可以解决问题
sbt debianSign
您需要 dpkg-sig
安装。
我正在尝试构建一个 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
?
Native-packager 提供了一种调用 dpkg-sig
命令对包进行签名的方法。这个命令应该可以解决问题
sbt debianSign
您需要 dpkg-sig
安装。