Archived
1
0

move cuckoo-miner building to build-js.sh

This commit is contained in:
Jeff 2016-05-18 13:16:06 -04:00
parent 84cac4ceec
commit e831a56809
5 changed files with 18 additions and 19 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "contrib/js/contrib/MathJax"]
path = contrib/js/contrib/MathJax
url = https://github.com/mathjax/MathJax

View File

@ -15,6 +15,18 @@ if [ ! -f $GOPATH/bin/minify ]; then
echo "set up minifiy" echo "set up minifiy"
go get -v github.com/tdewolff/minify/cmd/minify go get -v github.com/tdewolff/minify/cmd/minify
fi fi
if [ ! -f $GOPATH/bin/gopherjs ]; then
echo "set up gopherjs"
go get -v -u github.com/gopherjs/gopherjs
fi
# build cuckoo miner
echo "Building cuckoo miner"
go get -v -u github.com/ZiRo-/cuckgo/miner_js
$GOPATH/bin/gopherjs -m -v build github.com/ZiRo-/cuckgo/miner_js
mv ./miner_js.js ./contrib/static/miner-js.js
rm ./miner_js.js.map
outfile=$PWD/contrib/static/nntpchan.js outfile=$PWD/contrib/static/nntpchan.js
lint() { lint() {

View File

@ -81,13 +81,4 @@ else
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"

@ -1 +0,0 @@
Subproject commit d4ab1b35c96dd964eaa9e1ed2c86e39fffbdacf6

File diff suppressed because one or more lines are too long