From bb556e1193d8cbe657e47243c18e6913ac26e688 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 14 Oct 2016 19:33:10 +0100 Subject: [PATCH 1/2] Change solc-bin publish script to support npm --- scripts/travis-emscripten/publish_binary.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/travis-emscripten/publish_binary.sh b/scripts/travis-emscripten/publish_binary.sh index 236d976a0..8fb0a2bcf 100755 --- a/scripts/travis-emscripten/publish_binary.sh +++ b/scripts/travis-emscripten/publish_binary.sh @@ -81,9 +81,16 @@ else fi +# Prepare for update script +npm install + # This file is assumed to be the product of the build_emscripten.sh script. cp ../soljson.js ./bin/"soljson-$FULLVERSION.js" -node ./update + +# Run update script +npm run update + +# Publish updates git add ./bin/"soljson-$FULLVERSION.js" git commit -a -m "Added compiler version $FULLVERSION" git push origin gh-pages From 8fe36599a2ea78d58d8dcc0752520a35fc33a6fa Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 14 Oct 2016 19:35:42 +0100 Subject: [PATCH 2/2] Simplify publish script --- scripts/travis-emscripten/publish_binary.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/travis-emscripten/publish_binary.sh b/scripts/travis-emscripten/publish_binary.sh index 8fb0a2bcf..7bf6f3690 100755 --- a/scripts/travis-emscripten/publish_binary.sh +++ b/scripts/travis-emscripten/publish_binary.sh @@ -81,16 +81,18 @@ else fi +NEWFILE=./bin/"soljson-$FULLVERSION.js" + # Prepare for update script npm install # This file is assumed to be the product of the build_emscripten.sh script. -cp ../soljson.js ./bin/"soljson-$FULLVERSION.js" +cp ../soljson.js "$NEWFILE" # Run update script npm run update # Publish updates -git add ./bin/"soljson-$FULLVERSION.js" +git add "$NEWFILE" git commit -a -m "Added compiler version $FULLVERSION" git push origin gh-pages