Archived
1
0

add miner.js to build.sh

This commit is contained in:
ZiRo 2016-05-17 13:27:29 +02:00
parent 941c4a3a9f
commit c2bd325be6
2 changed files with 56 additions and 27628 deletions

View File

@ -22,6 +22,7 @@ done
rev="QmPAqM7anxdr1ngPmJz9J9AAxDLinDz2Eh9aAzLF9T7LNa" rev="QmPAqM7anxdr1ngPmJz9J9AAxDLinDz2Eh9aAzLF9T7LNa"
ipfs="no" ipfs="no"
cuckoo="no"
_next="" _next=""
# check for build flags # check for build flags
for arg in $@ ; do for arg in $@ ; do
@ -29,6 +30,9 @@ for arg in $@ ; do
"--ipfs") "--ipfs")
ipfs="yes" ipfs="yes"
;; ;;
"--cuckoo")
cuckoo="yes"
;;
"--disable-redis") "--disable-redis")
tags="$tags -tags disable_redis" tags="$tags -tags disable_redis"
;; ;;
@ -76,4 +80,14 @@ else
go get -u -v github.com/majestrate/srndv2 go get -u -v github.com/majestrate/srndv2
cp $GOPATH/bin/srndv2 $root cp $GOPATH/bin/srndv2 $root
fi fi
if [ "x$cuckoo" == "xyes" ] ; then
echo "building cucko miner js"
go get -v -u github.com/gopherjs/gopherjs
go get -v -u github.com/ZiRo-/cuckgo/miner_js
gopherjs -m -v build github.com/ZiRo-/cuckgo/miner_js
mv ./miner_js.js ./contrib/static/miner-js.js
rm ./miner_js.js.map
fi
echo "Built" echo "Built"

File diff suppressed because one or more lines are too long