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 +}