deb-sign.sh 308 B

12345678910111213141516
  1. #!/bin/bash
  2. set -e
  3. pkgdir="${1}"
  4. keyid="${2}"
  5. echo "::group::Installing Dependencies"
  6. sudo apt-get update
  7. sudo apt-get upgrade -y
  8. sudo apt-get install -y debsigs
  9. echo "::endgroup::"
  10. echo "::group::Signing packages"
  11. debsigs --sign=origin --default-key="${keyid}" "${pkgdir}"/*.{,d}deb
  12. echo "::endgroup::"