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

View File

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