summaryrefslogtreecommitdiff
path: root/doRelease.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-14 06:18:38 -0500
committerJeff Carr <[email protected]>2025-10-14 06:33:14 -0500
commit37e10c58d67cb1abb15c2f345f4e6800ab7065b2 (patch)
treee5676c7c5bc20c09dce2c31a72fc01174175da02 /doRelease.go
parenta7d9ba18a64d53010c08285c14804c07b4e8c8fb (diff)
hammering it into form
Diffstat (limited to 'doRelease.go')
-rw-r--r--doRelease.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/doRelease.go b/doRelease.go
index 887dab9..c436e70 100644
--- a/doRelease.go
+++ b/doRelease.go
@@ -11,6 +11,7 @@ import (
"strings"
"time"
+ "go.wit.com/lib/config"
"go.wit.com/lib/gui/shell"
"go.wit.com/log"
)
@@ -110,10 +111,12 @@ func doRelease() (string, error) {
// fmt.Fprintf(rfile, "SHA256:\n")
rfile.Close()
+ gpgKeyID := config.GetPanic("gpgKeyID")
// Sign the file
log.Println("Signing with GPG key:", gpgKeyID)
- distPath := "/home/mirrors/wit/dists/sid"
+ // distPath := "/home/mirrors/wit/dists/sid"
+ distPath := config.GetPanic("distPath")
// Create InRelease
cmdClearSign := exec.Command("gpg", "--default-key", gpgKeyID, "--clearsign", "-o", filepath.Join(distPath, "InRelease"), releasePath)
if err := runCommand(cmdClearSign); err != nil {