move cuckoo-miner building to build-js.sh
This commit is contained in:
parent
84cac4ceec
commit
e831a56809
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +0,0 @@
|
||||
[submodule "contrib/js/contrib/MathJax"]
|
||||
path = contrib/js/contrib/MathJax
|
||||
url = https://github.com/mathjax/MathJax
|
12
build-js.sh
12
build-js.sh
@ -15,6 +15,18 @@ if [ ! -f $GOPATH/bin/minify ]; then
|
||||
echo "set up minifiy"
|
||||
go get -v github.com/tdewolff/minify/cmd/minify
|
||||
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
|
||||
|
||||
lint() {
|
||||
|
9
build.sh
9
build.sh
@ -81,13 +81,4 @@ else
|
||||
cp $GOPATH/bin/srndv2 $root
|
||||
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"
|
||||
|
@ -1 +0,0 @@
|
||||
Subproject commit d4ab1b35c96dd964eaa9e1ed2c86e39fffbdacf6
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user