mirror of
https://github.com/zyedidia/micro.git
synced 2024-09-11 12:15:52 +03:00
Fix snap install metadata
This commit is contained in:
parent
6681387b47
commit
2d2dbfebff
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user