snapcraft

pull/760/head
hunterlong 2020-07-23 12:00:02 -07:00
parent 132863bb63
commit 704476a747
1 changed files with 5 additions and 9 deletions

View File

@ -29,18 +29,14 @@ apps:
parts:
statping:
plugin: git
source: https://github.com/statping/statping.git
source-type: git
override-pull: |
snapcraftctl set-version "$(cat version.txt)"
override-build: |
export GOPATH=$PWD
cd src/github.com/statping/statping
GOOS=linux go build -a -ldflags "-s -w -extldflags -static -X main.VERSION=$(cat version.txt)" -o statping --tags "netgo linux" ./cmd
plugin: go
source: .
go-importpath: statping
build-snaps:
- go
build-packages:
- git
- gcc
- make
- sed