mirror of
https://github.com/zyedidia/micro.git
synced 2024-09-11 12:15:52 +03:00
install the snap with make (#747)
* install the snap with make * set the source-type to git, remove get * remove extra space
This commit is contained in:
parent
5c462f5600
commit
fad95c028a
@ -14,6 +14,17 @@ apps:
|
|||||||
parts:
|
parts:
|
||||||
micro:
|
micro:
|
||||||
source: .
|
source: .
|
||||||
plugin: go
|
source-type: git
|
||||||
go-importpath: github.com/zyedidia/micro
|
plugin: nil
|
||||||
go-packages: [github.com/zyedidia/micro/cmd/micro]
|
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/
|
||||||
|
Loading…
Reference in New Issue
Block a user