support .gz package files

This commit is contained in:
ferrreo 2023-09-05 11:53:39 +01:00
parent 3c0e0f3f58
commit 8bf5e531cf
3 changed files with 6 additions and 1 deletions

BIN
ppp

Binary file not shown.

5
sign.sh Executable file
View File

@ -0,0 +1,5 @@
#! /bin/bash
set -e
dpkg-sig $@ &
wait $last_pid

View File

@ -177,7 +177,7 @@ func signFiles(path string) {
func sign(ch chan bool, path string) {
if strings.HasSuffix(path, ".deb") {
fmt.Printf("Signing %s \n", path)
cmd := exec.Command("dpkg-sig", "--sign", "builder", path)
cmd := exec.Command("../sign.sh", "--sign", "builder", path)
err := cmd.Run()
if err != nil {
panic(err)