Skip to content

Instantly share code, notes, and snippets.

@step21
Last active August 2, 2017 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save step21/44d2050470b0d78752a7d89d25eabb8f to your computer and use it in GitHub Desktop.
Save step21/44d2050470b0d78752a7d89d25eabb8f to your computer and use it in GitHub Desktop.
name: aletheia # you probably want to 'snapcraft register <name>'
version: '0.3' # just for humans, typically '1.2+git' or '1.3.2'
summary: Aletheia decentralized scientific publishing # 79 char long summary
description: |
Aletheia is...
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
apps:
aletheia:
command: npm start
plugs: [home, network, network-bind, opengl]
#desktop:
ipfs:
command: ipfs daemon
daemon: simple
plugs: [home, network, network-bind]
ethereum:
command: geth --rpc --rpccorsdomain "*"
daemon: simple
plugs: [home, network, network-bind]
parts:
aletheia:
source: https://github.com/step21/aletheia-app.git
plugin: nodejs
node-engine: "6.9.5"
node-packages:
- truffle
- electron
- truffle-expect
- truffle-contract
- truffle-config
- config
- ipfs-api
- jquery
- q
- web3
organize:
README.md: README-node.md
#this could in the future be replaced by using parts from wiki
after: [ethereum, ipfs]
#environment:
# plugin: dump
# source: snap
# organize:
# aletheia.sh: bin/aletheia.sh
# prime:
# - bin/aletheia.sh
# stage:
# - bin/aletheia.sh
ipfs:
source: https://github.com/ipfs/go-ipfs.git
source-tag: master
plugin: nil
build-packages: [make, wget]
prepare: |
mkdir -p ../go/src/github.com/ipfs/go-ipfs
cp -R . ../go/src/github.com/ipfs/go-ipfs
build: |
env GOPATH=$(pwd)/../go make -C ../go/src/github.com/ipfs/go-ipfs install
install: |
mkdir $SNAPCRAFT_PART_INSTALL/bin
mv ../go/bin/ipfs $SNAPCRAFT_PART_INSTALL/bin/
after: [go]
ethereum:
plugin: make
source-tag: master
source: https://github.com/ethereum/go-ethereum.git
build: make -j4
install: |
mkdir $SNAPCRAFT_PART_INSTALL/bin
cp -R * $SNAPCRAFT_PART_INSTALL
organize:
README.md: README-ethereum.md
after: [go]
go:
source-tag: go1.8.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment