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
|
./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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue