From 19e62db8cd961af022549d9b1903d496ccd8e796 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 1 May 2023 18:24:55 +0200 Subject: [PATCH] fix latest --- apps/remix-ide/ci/download_e2e_assets.js | 5 ++--- apps/remix-ide/ci/downloadsoljson.sh | 6 ++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide/ci/download_e2e_assets.js b/apps/remix-ide/ci/download_e2e_assets.js index 8b44014669..027165fcdb 100644 --- a/apps/remix-ide/ci/download_e2e_assets.js +++ b/apps/remix-ide/ci/download_e2e_assets.js @@ -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); diff --git a/apps/remix-ide/ci/downloadsoljson.sh b/apps/remix-ide/ci/downloadsoljson.sh index 5a0d786bf1..5fdbfddf39 100644 --- a/apps/remix-ide/ci/downloadsoljson.sh +++ b/apps/remix-ide/ci/downloadsoljson.sh @@ -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