aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci7
-rwxr-xr-xscripts/package7
2 files changed, 14 insertions, 0 deletions
diff --git a/scripts/ci b/scripts/ci
index 497355c..5c5aea2 100755
--- a/scripts/ci
+++ b/scripts/ci
@@ -16,7 +16,14 @@ GOOS=darwin go build -o "target/$PROJECT_NAME-darwin-amd64"
echo "Packaging for debian (linux/amd64)"
mkdir -p deb/usr/bin/
+
cp target/$PROJECT_NAME-linux-amd64 deb/usr/bin/gomuks
+
+go get -u maunium.net/go/tcell
+mkdir -p deb/usr/share/tcell/
+rm -rf deb/usr/share/tcell/database
+cp -r $GOPATH/src/maunium.net/go/tcell/terminfo/database deb/usr/share/tcell
+
sed -i.bak -E 's/(Version: [0-9]+\.[0-9]+\.[0-9]+\-[0-9]+)/\1+'$SHORTHEAD'/' deb/DEBIAN/control
dpkg-deb --build deb 'target/'$PROJECT_NAME'_linux_amd64.deb'
mv -f deb/DEBIAN/control.bak deb/DEBIAN/control
diff --git a/scripts/package b/scripts/package
index 158439f..6b38a00 100755
--- a/scripts/package
+++ b/scripts/package
@@ -1,6 +1,13 @@
#!/bin/bash
mkdir -p deb/usr/bin/
mkdir -p target/
+
go build -o deb/usr/bin/gomuks
+
+go get -u maunium.net/go/tcell
+mkdir -p deb/usr/share/tcell/
+rm -rf deb/usr/share/tcell/database
+cp -r $GOPATH/src/maunium.net/go/tcell/terminfo/database deb/usr/share/tcell
+
version=$(cat deb/DEBIAN/control | grep Version | awk '{ print $2 }')
dpkg-deb --build deb target/gomuks-$version.deb