summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-05 07:35:57 -0500
committerJeff Carr <[email protected]>2025-10-05 07:35:57 -0500
commite8857d62d91538e0760c50c5e1a68eaa16caf309 (patch)
treeed5a5a2526ed0025a450e28c7d177f8bfbd7b5d0 /structs.go
parentb65fe9b53c549ba63ec390b2fb2950345ed1fdb9 (diff)
a binary to replace aptly
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go38
1 files changed, 38 insertions, 0 deletions
diff --git a/structs.go b/structs.go
new file mode 100644
index 0000000..c0d5cb1
--- /dev/null
+++ b/structs.go
@@ -0,0 +1,38 @@
+package main
+
+import (
+ "sync"
+
+ "go.wit.com/lib/gui/prep"
+)
+
+// --- Configuration ---
+// !!! IMPORTANT: Set your GPG Key ID here!
+// Find it with: gpg --list-secret-keys --keyid-format=long
+const gpgKeyID = "5D7C9BE47836D2FA48F83C2B4A854AEAF7E0E16D"
+
+const dist = "sid"
+const component = "main"
+const poolDir = "pool"
+const distsDir = "dists"
+
+var architectures = []string{"amd64", "riscv64", "arm64", "all"}
+
+// DebInfo holds the control information for a single .deb package.
+type DebInfo struct {
+ ControlData map[string]string
+ Filename string
+ Size int64
+ MD5Sum string
+ SHA1Sum string
+ SHA256Sum string
+}
+
+var me *mainType
+
+// this app's variables
+type mainType struct {
+ once sync.Once // one-time initialized data
+ sh *prep.Auto // more experiments for bash handling
+ // forge *forgepb.Forge // your customized repo preferences and settings
+}