@@ 16,19 16,21 @@ tasks:
- build: |
cd ${PROJ}
VERSION=`hg log -r tip --template '{bookmarks}'`
+ export VERSION
go build -ldflags "-X main.Version=${VERSION}" -v .
CLAPTRAP_USAGE_JSON=true ./${PROJ} | ${HOME}/go/bin/makeclapman -d assets
gzip assets/*.1
- for T in deb rpm pkg archlinux; do
+ for T in deb rpm apk archlinux; do
nfpm pkg --packager $T --target assets -f assets/nfpm.yaml
done
gpg -b --local-user ECE3F91E646A3FAB5D4DED0F5E0D7ABD6668FDD1 assets/*.zst
- upload: |
cd ${PROJ}
VERSION=`hg log -r tip --template '{bookmarks}'`
+ export VERSION
[[ $VERSION == "" ]] && exit
ASSETSURL="https://downloads.ser1.net/files/${PROJ}/"
[[ `curl --netrc-file ~/.downloads -X PROPFIND $ASSETSURL` == "Not Found" ]] && curl --netrc-file ~/.downloads -X MKCOL ${ASSETSURL}
- for ASSET in assets/*.zst assets/*.deb assets/*.rpm assets/*.apk assets/*.pkg assets/*.sig ; do
+ for ASSET in assets/*.zst assets/*.deb assets/*.rpm assets/*.apk assets/*.sig ; do
curl --netrc-file ~/.downloads -T ${ASSET} ${ASSETSURL}
done
@@ 33,9 33,11 @@ Tasks can be progressed (to the next lan
Install
-------
-`go install ser1.net/kanto`
+[Pre-compiled binaries](https://downloads.ser1.net/software/kanto/) for Debian, Redhat, Alpine, and Arch are built by CI. The Arch zst and Alpine APKs are zst/gz tarballs, either of which can be inspected and extracted into / to install, or use something like [xstow](http://xstow.sourceforge.net). The Arch `.zst.sig` is signed with my GPG key 0D7ABD6668FDD1.
-Or, grab a pre-complied build from `https://hg.sr.ht/~ser/kanto`.
+If you have Go installed, you can get kanto with:
+
+`go install ser1.net/kanto@latest`
Example .kanto
--------------