Skip to content

Commit

Permalink
install the snap with make (#747)
Browse files Browse the repository at this point in the history
* install the snap with make

* set the source-type to git, remove get

* remove extra space
  • Loading branch information
Leo Arias authored and zyedidia committed Jul 26, 2017
1 parent 5c462f5 commit fad95c0
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions snapcraft.yaml
Expand Up @@ -14,6 +14,17 @@ apps:
parts:
micro:
source: .
plugin: go
go-importpath: github.com/zyedidia/micro
go-packages: [github.com/zyedidia/micro/cmd/micro]
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/

0 comments on commit fad95c0

Please sign in to comment.