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: parts:
statping: statping:
plugin: git plugin: go
source: https://github.com/statping/statping.git source: .
source-type: git go-importpath: statping
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
build-snaps: build-snaps:
- go - go
build-packages: build-packages:
- git - git
- gcc
- make
- sed - sed