Add debian packaging and some build scripts
This commit is contained in:
parent
b796c2e209
commit
93cbdc0ca8
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,5 +1,8 @@
|
|||||||
.idea/
|
.idea/
|
||||||
|
target/
|
||||||
gomuks
|
gomuks
|
||||||
gomuks.exe
|
*.exe
|
||||||
|
*.deb
|
||||||
coverage.out
|
coverage.out
|
||||||
coverage.html
|
coverage.html
|
||||||
|
deb/usr
|
||||||
|
7
deb/DEBIAN/control
Normal file
7
deb/DEBIAN/control
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Package: gomuks
|
||||||
|
Version: 0.0.0-1
|
||||||
|
Section: net
|
||||||
|
Priority: optional
|
||||||
|
Architecture: amd64
|
||||||
|
Maintainer: Tulir Asokan <tulir@maunium.net>
|
||||||
|
Description: A terminal based Matrix client written in Go.
|
2
scripts/build
Executable file
2
scripts/build
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
go build -o target/gomuks
|
8
scripts/coverage
Executable file
8
scripts/coverage
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
mkdir -p target/
|
||||||
|
go test ./... -coverprofile=target/coverage.out
|
||||||
|
if [ ! -z $1 ]; then
|
||||||
|
go tool cover -html=coverage.out -o $1
|
||||||
|
else
|
||||||
|
go tool cover -html=coverage.out
|
||||||
|
fi
|
2
scripts/lint
Executable file
2
scripts/lint
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
golint ./... | grep -v "should have comment" | grep -v "vendor/"
|
6
scripts/package
Executable file
6
scripts/package
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
mkdir -p deb/usr/bin/
|
||||||
|
mkdir -p target/
|
||||||
|
go build -o deb/usr/bin/gomuks
|
||||||
|
version=$(cat deb/DEBIAN/control | grep Version | awk '{ print $2 }')
|
||||||
|
dpkg-deb --build deb target/gomuks-$version.deb
|
Loading…
Reference in New Issue
Block a user