update snapcraft.yaml

This commit is contained in:
ginuerzh 2019-12-19 05:55:30 +00:00
parent 45dcf3f954
commit 84752d33d7

View File

@ -11,15 +11,28 @@ base: core18
license: MIT license: MIT
parts: parts:
gost: gost:
plugin: go plugin: nil
go-importpath: github.com/ginuerzh/gost build-snaps: [go/1.13/stable]
go-packages: [github.com/ginuerzh/gost/cmd/gost]
source: https://github.com/ginuerzh/gost.git source: https://github.com/ginuerzh/gost.git
source-subdir: cmd/gost
source-type: git source-type: git
source-branch: '2.8' source-branch: '2.8'
build-packages: build-packages:
- build-essential - build-essential
build-environment:
- GO111MODULE: 'on'
override-build: |
set -ex
echo "Starting override-build:"
pwd
cd $SNAPCRAFT_PART_BUILD
GO111MODULE=on go build
./gost -V
echo "Installing to ${SNAPCRAFT_PART_INSTALL}..."
install -d $SNAPCRAFT_PART_INSTALL/bin
cp -v gost $SNAPCRAFT_PART_INSTALL/bin/
apps: apps:
gost: gost:
command: bin/gost command: bin/gost