release/dist/qnap: preserve .codesigning files as build artifacts

Stop deleting .qpkg.codesigning files in build-qpkg.sh and include
them in the returned artifact list from buildQPKG.

These files contain the last 32 characters of the base64-encoded CMS
signature produced by QDK code signing. They are consumed by pkgserve
to populate <signature> entries in the QNAP repository XML, matching
the format used by myqnap.org and qnapclub.eu.

Updates corp#33203

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby
2026-04-01 12:10:37 +00:00
committed by Kristoffer Dalby
parent 2d85f37f39
commit 384b7fb561
2 changed files with 14 additions and 13 deletions
+10 -1
View File
@@ -118,7 +118,16 @@ func (t *target) buildQPKG(b *dist.Build, qnapBuilds *qnapBuilds, inner *innerPk
return nil, fmt.Errorf("docker run %v: %s", err, out)
}
return []string{filePath, filePath + ".md5"}, nil
ret := []string{filePath, filePath + ".md5"}
// If the build was signed, a .codesigning file is produced containing
// the last 32 characters of the base64-encoded CMS signature. This is
// used by pkgserve to populate <signature> entries in the QNAP
// repository XML.
codesigning := filePath + ".codesigning"
if _, err := os.Stat(codesigning); err == nil {
ret = append(ret, codesigning)
}
return ret, nil
}
type qnapBuildsMemoizeKey struct{}