-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
75c3a44
commit 57ae957
Showing
2 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: gaia # you probably want to 'snapcraft register <name>' | ||
# base: core18 # the base snap is the execution environment for this snap | ||
version: '@VERSION@' # just for humans, typically '1.2+git' or '1.3.2' | ||
summary: Gaia Daemon # 79 char long summary | ||
description: | | ||
This snap provides the Gaia daemon gaiad and the command line | ||
tool gaiacli. | ||
grade: devel # must be 'stable' to release into candidate/stable channels | ||
confinement: strict # use 'strict' once you have the right plugs and slots | ||
|
||
apps: | ||
gaiad: | ||
command: bin/gaiad | ||
plugs: [home,network,network-bind] | ||
gaiacli: | ||
command: bin/gaiacli | ||
plugs: [home,network,network-bind] | ||
|
||
parts: | ||
gaia: | ||
plugin: dump | ||
source: ./ | ||
override-pull: | | ||
rootdir=$(pwd) | ||
gitroot=$(git rev-parse --show-toplevel) | ||
cd ${gitroot} && git archive \ | ||
-o ${rootdir}/gaia-@[email protected] \ | ||
--format tar.gz -9 --prefix gaia-@VERSION@/ HEAD | ||
cd ${rootdir} | ||
tar xvf gaia-@[email protected] ; rm -f gaia-@[email protected] | ||
mkdir -p go/src/github.com/cosmos bin | ||
mv gaia-@VERSION@/ go/src/github.com/cosmos/cosmos-sdk/ | ||
|
||
# Use the following instructions to build a package from a release. | ||
# wget https://github.com/cosmos/cosmos-sdk/archive/v@[email protected] | ||
# tar xvf v@[email protected] | ||
# rm v@[email protected] | ||
|
||
build-snaps: [go] | ||
override-build: | | ||
base=`pwd` | ||
export GOPATH=`pwd`/go | ||
cd $GOPATH/src/github.com/cosmos/cosmos-sdk | ||
make tools | ||
make vendor-deps | ||
make install | ||
mkdir $SNAPCRAFT_PART_INSTALL/bin | ||
cp $GOPATH/bin/gaiad $SNAPCRAFT_PART_INSTALL/bin | ||
cp $GOPATH/bin/gaiacli $SNAPCRAFT_PART_INSTALL/bin |