debian packages must start with a number

This commit is contained in:
Jeff Carr 2024-03-02 17:17:53 -06:00
parent 6fd6559203
commit 1279baed72
2 changed files with 5 additions and 17 deletions

View File

@ -11,13 +11,9 @@ no-gui: build
./go-deb --no-gui --repo go.wit.com/apps/autotypist
build:
-mkdir resources
-cp ~/go/src/go.wit.com/toolkits/*.so resources/
GO111MODULE="off" go build -v
install:
-mkdir resources
-cp ~/go/src/go.wit.com/toolkits/*.so resources/
GO111MODULE="off" go install -v
goimports:
@ -41,15 +37,6 @@ nocui: reset build
clean:
-rm go-deb
-rm -rf files/
-rm -f resources/*.so
-rm *.deb
debian:
cd debian && make
mirrors:
-wit mirrors
build-go-gui-toolkits: build
./go-deb --release --no-gui --repo go.wit.com/apps/go-gui-toolkits

View File

@ -11,6 +11,7 @@ import (
"strings"
"time"
"go.wit.com/lib/gui/repolist"
"go.wit.com/lib/gui/shell"
"go.wit.com/log"
)
@ -38,10 +39,10 @@ func (c *controlBox) buildPackage() (bool, error) {
}
arch := c.Architecture.String()
version := c.Version.String()
if version == "" {
version = "0.0.0"
}
tmp := c.Version.String()
version := repolist.ValidDebianPackageVersion(tmp)
log.Info("version went from", tmp, "to", version)
os.Exit(-1)
debname := filename + "_" + version + "_" + arch + ".deb"
fulldebname := filepath.Join(homeDir, "incoming", debname)
if shell.Exists(fulldebname) {