Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Nov 20, 2016
0 parents commit 212af29
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
parts
stage
prime
*.snap
*.tar*
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
test:
sudo snap install --force-dangerous --devmode zero*.snap
cleanbuild:
snapcraft cleanbuild
clean:
rm -fv *.snap
rm -fv *.tar.bz2
snapcraft clean
build:
snapcraft build
11 changes: 11 additions & 0 deletions scripts/zeronet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

cd $SNAP
datadir=$SNAP_USER_DATA

#we currently can not open a browser or browser session
SCRIPT="$SNAP/zeronet/zeronet.py"
mkdir -p $datadir/data
mkdir -p $datadir/log
cd $SNAP/zeronet
$SNAP/zero/Python/python $SCRIPT --data_dir $datadir/data --log_dir $datadir/data "$@"
77 changes: 77 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: zeronet
version: 0.0.1
summary: Open, free and uncensorable websites, using Bitcoin and BitTorrent
description: |
This is my-snap's description. You have a paragraph or two to tell the
most important story about your snap. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the snap
store.
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots

apps:
# zeronet:
# command: usr/bin/python3 $SNAP/zeronet/zeronet.py
zeronet:
command: bash $SNAP/zero/ZeroNet.sh
plugs: [network,network-bind]
env:
command: env
# daemon: simple
parts:
# py:
# plugin: python
# stage-packages:
# - python3
# - python3-gevent
# code:
# after:
# - py
# source: https://github.com/HelloZeroNet/ZeroNet
# source-branch: master
# source-type: git
# plugin: dump
# organize:
# .: zeronet
bundle:
source: https://github.com/HelloZeroNet/ZeroBundle/raw/master/dist/ZeroBundle-linux64.tar.gz
plugin: dump
snap:
- zero
- LICENSE
organize:
ssl: zero/ssl
Python: zero/Python
lib: zero/lib
LICENSE.txt: LICENSE
source:
source: https://github.com/HelloZeroNet/ZeroNet
source-branch: master
source-type: git
snap:
- zeronet
plugin: dump
organize:
src: zeronet/src
tools: zeronet/tools
plugins: zeronet/plugins
zeronet.py: zeronet/zeronet.py
start.py: zeronet/start.py
scripts:
source: scripts
plugin: dump
snap:
- zero
organize:
zeronet.sh: zero/ZeroNet.sh
# deb:
# plugin: nil
#
# filesets:
# python:
# - usr/bin/python*
# - lib
# - usr/lib
# snap:
# - $python

0 comments on commit 212af29

Please sign in to comment.