debian packages must start with a number
This commit is contained in:
parent
6fd6559203
commit
1279baed72
13
Makefile
13
Makefile
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue