pull/3668/head^2
filip mertens 2 years ago
parent e949e6fb93
commit 19e62db8cd
  1. 5
      apps/remix-ide/ci/download_e2e_assets.js
  2. 6
      apps/remix-ide/ci/downloadsoljson.sh

@ -1,9 +1,8 @@
const fs = require('fs');
var child_process = require('child_process');
const { exit } = require('process');
var child = child_process.spawnSync('grep', ['-ir', '[0-9]+commit', 'libs/**/*', 'apps/**/*', '--include', '\*.ts'], { encoding: 'utf8', cwd: process.cwd(), shell: true });
var child = child_process.spawnSync('grep', ['-ir', '[0-9]+commit', 'libs/**/*', 'apps/**/*', '--include', '*.ts'], { encoding: 'utf8', cwd: process.cwd(), shell: true });
if (child.error) {
console.log("ERROR: ", child);
@ -15,7 +14,7 @@ const nonnightlyre = /v\d*\.\d*\.\d*\+commit\.[\d\w]*/g;
let soljson = child.stdout.match(nonnightlyre);
console.log('non nightly soljson versions found: ', soljson);
const quotedversionre = /\'\d*\.\d*\.\d*\+commit\.[\d\w]*/g;
const quotedversionre = /'\d*\.\d*\.\d*\+commit\.[\d\w]*/g;
let soljson2 = child.stdout.match(quotedversionre).map((item) => item.replace('\'', 'v'));
console.log('quoted soljson versions found: ', soljson2);

@ -21,6 +21,12 @@ path="https://binaries.soliditylang.org/bin/$url"
echo "path: $path"
# download the file to ./apps/remix-ide/src/assets/js/soljson.js
curl $path > ./apps/remix-ide/src/assets/js/soljson.js
# if directory ./apps/remix-ide/src/assets/js/soljson does not exist, create it
if [ ! -d "./apps/remix-ide/src/assets/js/soljson" ]; then
mkdir ./apps/remix-ide/src/assets/js/soljson
fi
cp ./apps/remix-ide/src/assets/js/soljson.js ./apps/remix-ide/src/assets/js/soljson/$url
# remove list.json
rm list.json

Loading…
Cancel
Save