-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #334 from WeBankFinTech/dev
fix solc bin
- Loading branch information
Showing
6 changed files
with
75 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ package-lock.json | |
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
v0.*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
dist/static/js/0.886338d26d485d17674e.js → dist/static/js/0.1ffbd173d2bc24f015ea.js
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file renamed
BIN
+223 KB
dist/static/js/0.886338d26d485d17674e.js.gz → dist/static/js/0.1ffbd173d2bc24f015ea.js.gz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
#!/usr/bin/env bash | ||
|
||
# 在源码编译得到的WeBASE-Web目录中执行 | ||
|
||
CURRENT_DIR=$(pwd) | ||
OUTPUT_DIR="./dist/static/js" | ||
|
||
|
||
####### 参数解析 ####### | ||
PARAM_ERROR=1 | ||
cmdname=$(basename "$0") | ||
|
||
# usage help doc. | ||
usage() { | ||
cat << USAGE >&2 | ||
Usage: | ||
$cmdname [-o output_relative_directory] | ||
-o solidity js file download output [relative] directory, ex: dist/static/js is [./dist/static/js] | ||
USAGE | ||
exit $PARAM_ERROR | ||
} | ||
|
||
|
||
while getopts o:h OPT;do | ||
case ${OPT} in | ||
o) | ||
OUTPUT_DIR="$OPTARG" | ||
;; | ||
h) | ||
usage | ||
exit ${PARAM_ERROR} | ||
;; | ||
\?) | ||
usage | ||
exit ${PARAM_ERROR} | ||
;; | ||
esac | ||
done | ||
|
||
get_solc_js(){ | ||
STATIC_JS_DIR=${CURRENT_DIR}/${OUTPUT_DIR} | ||
if [ ! -d "${STATIC_JS_DIR}" ];then | ||
echo "Directory not exist: ${STATIC_JS_DIR}" | ||
exit 1 | ||
else | ||
echo "Now download all solidity js in ${STATIC_JS_DIR}, if offline, download js file and put them in this dir" | ||
if [[ ! -f "${STATIC_JS_DIR}/v0.4.25.js" ]]; then | ||
curl -#L https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/WeBASE/download/solidity/v0.4.25.js -o "${STATIC_JS_DIR}"/v0.4.25.js | ||
fi | ||
if [[ ! -f "${STATIC_JS_DIR}/v0.4.24-gm.js" ]]; then | ||
curl -#L https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/WeBASE/download/solidity/v0.4.24-gm.js -o "${STATIC_JS_DIR}"/v0.4.24-gm.js | ||
fi | ||
if [[ ! -f "${STATIC_JS_DIR}/v0.5.1.js" ]]; then | ||
curl -#L https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/WeBASE/download/solidity/v0.5.1.js -o "${STATIC_JS_DIR}"/v0.5.1.js | ||
fi | ||
if [[ ! -f "${STATIC_JS_DIR}/v0.5.1-gm.js" ]]; then | ||
curl -#L https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/WeBASE/download/solidity/v0.5.1-gm.js -o "${STATIC_JS_DIR}"/v0.5.1-gm.js | ||
fi | ||
if [[ ! -f "${STATIC_JS_DIR}/v0.6.10.js" ]]; then | ||
curl -#L https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/WeBASE/download/solidity/v0.6.10.js -o "${STATIC_JS_DIR}"/v0.6.10.js | ||
fi | ||
if [[ ! -f "${STATIC_JS_DIR}/v0.6.10-gm.js" ]]; then | ||
curl -#L https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/WeBASE/download/solidity/v0.6.10-gm.js -o "${STATIC_JS_DIR}"/v0.6.10-gm.js | ||
fi | ||
fi | ||
} | ||
get_solc_js | ||
|
||
echo "end of script" | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters