Fix snap install metadata
@@ -12,22 +12,14 @@ apps:
command: bin/micro
parts:
- go:
- source-tag: go1.10
micro:
- after: [go]
source: .
source-type: git
plugin: nil
build-packages: [make]
- prepare: |
- mkdir -p ../go/src/github.com/zyedidia/micro
- cp -R . ../go/src/github.com/zyedidia/micro
+ build-snaps: [go]
build: |
- export GOPATH=$(pwd)/../go
- export GOBIN=$(pwd)/../go/bin
- cd ../go/src/github.com/zyedidia/micro
- make install
+ make build
install: |
mkdir $SNAPCRAFT_PART_INSTALL/bin
- mv ../go/bin/micro $SNAPCRAFT_PART_INSTALL/bin/
+ mv ./micro $SNAPCRAFT_PART_INSTALL/bin/
