From d8625a1cb57bc690930a863b0fa0d0306a9b0ed6 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 13 May 2016 08:49:43 -0400 Subject: [PATCH] update ipfs hashes --- build.sh | 22 +++++++++++++++------- package.json | 6 +++--- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/build.sh b/build.sh index bad7c82..af2a6ce 100755 --- a/build.sh +++ b/build.sh @@ -20,12 +20,15 @@ for arg in $@ ; do esac done -rev="QmaNuKBcG3hb5YJ4xpeipdX3t2Fw6pwZJSnpvsfn9Zj1tm" - +rev="QmZWEqyb7hs2z1pNUqdfNyDgG3cj31ZZgP148RFdRExCQr" +ipfs="no" _next="" # check for build flags for arg in $@ ; do case $arg in + "--ipfs") + ipfs="yes" + ;; "--disable-redis") tags="$tags -tags disable_redis" ;; @@ -48,12 +51,17 @@ if [ "x$rev" == "x" ] ; then fi cd $root -#echo "obtaining gx" -#go get -v github.com/whyrusleeping/gx -#go get -v github.com/whyrusleeping/gx-go -#gx install --global && go build -v +unset GOPATH export GOPATH=$PWD/go mkdir -p $GOPATH -go get -u -v github.com/majestrate/srndv2 + +if [ "x$ipfs" == "xyes" ] ; then + echo "obtaining gx" + go get -v github.com/whyrusleeping/gx + go get -v github.com/whyrusleeping/gx-go + gx install +else + go get -u -v github.com/majestrate/srndv2 +fi cp $GOPATH/bin/srndv2 $root echo "Built" diff --git a/package.json b/package.json index add05bd..d3c0182 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,12 @@ { "author": "jeff", "name": "srndv2", - "hash": "QmaNuKBcG3hb5YJ4xpeipdX3t2Fw6pwZJSnpvsfn9Zj1tm", - "version": "0.0.0" + "hash": "QmZWEqyb7hs2z1pNUqdfNyDgG3cj31ZZgP148RFdRExCQr", + "version": "0.0.1" } ], "language": "go", "issues_url": "https://github.com/majestrate/nntpchan", "gx_version": "0.4.0", "gx": {} -} \ No newline at end of file +}