mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Store emscripten binaries usig new naming scheme.
This commit is contained in:
parent
fb86d90e08
commit
8ca31cebec
@ -34,7 +34,7 @@ VER=$(cat CMakeLists.txt | grep 'set(PROJECT_VERSION' | sed -e 's/.*set(PROJECT_
|
|||||||
test -n "$VER"
|
test -n "$VER"
|
||||||
VER="v$VER"
|
VER="v$VER"
|
||||||
COMMIT=$(git rev-parse --short HEAD)
|
COMMIT=$(git rev-parse --short HEAD)
|
||||||
DATE=$(date --date="$(git log -1 --date=iso --format=%ad HEAD)" --utc +%F)
|
DATE=$(date --date="$(git log -1 --date=iso --format=%ad HEAD)" --utc +%Y.%m.%d)
|
||||||
|
|
||||||
ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key"
|
ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key"
|
||||||
ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv"
|
ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv"
|
||||||
@ -52,14 +52,14 @@ git config user.email "chris@ethereum.org"
|
|||||||
git checkout -B gh-pages origin/gh-pages
|
git checkout -B gh-pages origin/gh-pages
|
||||||
git clean -f -d -x
|
git clean -f -d -x
|
||||||
# We only want one release per day and we do not want to push the same commit twice.
|
# We only want one release per day and we do not want to push the same commit twice.
|
||||||
if ls ./bin/soljson-"$VER-$DATE"-*.js || ls ./bin/soljson-*-"$COMMIT.js"
|
if ls ./bin/soljson-"$VER-nightly.$DATE"-*.js || ls ./bin/soljson-*"commit.$COMMIT.js"
|
||||||
then
|
then
|
||||||
echo "Not publishing, we already published this version today."
|
echo "Not publishing, we already published this version today."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This file is assumed to be the product of the build_emscripten.sh script.
|
# This file is assumed to be the product of the build_emscripten.sh script.
|
||||||
cp ../soljson.js ./bin/"soljson-$VER-$DATE-$COMMIT.js"
|
cp ../soljson.js ./bin/"soljson-$VER-nightly.$DATE+commit.$COMMIT.js"
|
||||||
node ./update
|
node ./update
|
||||||
cd bin
|
cd bin
|
||||||
LATEST=$(ls -r soljson-v* | head -n 1)
|
LATEST=$(ls -r soljson-v* | head -n 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user