From fad95c028a3d4d783282f5545a4a676dfec7f82c Mon Sep 17 00:00:00 2001 From: Leo Arias Date: Wed, 26 Jul 2017 16:35:16 -0600 Subject: [PATCH] install the snap with make (#747) * install the snap with make * set the source-type to git, remove get * remove extra space --- snapcraft.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index 8475e757..4249b0f6 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -14,6 +14,17 @@ apps: parts: micro: source: . - plugin: go - go-importpath: github.com/zyedidia/micro - go-packages: [github.com/zyedidia/micro/cmd/micro] \ No newline at end of file + source-type: git + plugin: nil + build-packages: [golang-go, make] + prepare: | + mkdir -p ../go/src/github.com/zyedidia/micro + cp -R . ../go/src/github.com/zyedidia/micro + build: | + export GOPATH=$(pwd)/../go + export GOBIN=$(pwd)/../go/bin + cd ../go/src/github.com/zyedidia/micro + make install + install: | + mkdir $SNAPCRAFT_PART_INSTALL/bin + mv ../go/bin/micro $SNAPCRAFT_PART_INSTALL/bin/