parent
a4aa56e209
commit
743f1bf065
@ -0,0 +1,28 @@ |
||||
const testFolder = './apps/remix-ide-e2e/src/tests/'; |
||||
const fs = require('fs'); |
||||
|
||||
|
||||
|
||||
fs.readdirSync(testFolder).forEach(file => { |
||||
let c = fs.readFileSync(testFolder + file, 'utf8'); |
||||
const re = /(?<=soljson).*(?=(.js))/g; |
||||
const soljson = c.match(re); |
||||
if (soljson) { |
||||
for (let i = 0; i < soljson.length; i++) { |
||||
|
||||
const version = soljson[i]; |
||||
if(version) { |
||||
const url = `https://solc-bin.ethereum.org/bin/soljson${version}.js`; |
||||
console.log(url) |
||||
|
||||
const path = `./dist/apps/remix-ide/assets/js/soljson${version}.js`; |
||||
const file = fs.createWriteStream(path); |
||||
require('https').get(url, function (response) { |
||||
response.pipe(file); |
||||
}); |
||||
} |
||||
|
||||
} |
||||
} |
||||
|
||||
}); |
@ -1,15 +0,0 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
set -e |
||||
|
||||
wget --no-check-certificate https://binaries.soliditylang.org/bin/soljson-v0.8.7+commit.e28d00a7.js -O ./dist/apps/remix-ide/assets/js/soljson-v0.8.7+commit.e28d00a7.js |
||||
wget --no-check-certificate https://binaries.soliditylang.org/bin/soljson-v0.8.16+commit.07a7930e.js -O ./dist/apps/remix-ide/assets/js/soljson-v0.8.16+commit.07a7930e.js |
||||
wget --no-check-certificate https://binaries.soliditylang.org/bin/soljson-v0.8.15+commit.e14f2714.js -O ./dist/apps/remix-ide/assets/js/soljson-v0.8.15+commit.e14f2714.js |
||||
wget --no-check-certificate https://binaries.soliditylang.org/bin/soljson-v0.7.4+commit.3f05b770.js -O ./dist/apps/remix-ide/assets/js/soljson-v0.7.4+commit.3f05b770.js |
||||
wget --no-check-certificate https://binaries.soliditylang.org/bin/soljson-v0.4.14+commit.c2215d46.js -O ./dist/apps/remix-ide/assets/js/soljson-v0.4.14+commit.c2215d46.js |
||||
wget --no-check-certificate https://binaries.soliditylang.org/bin/soljson-v0.6.8+commit.0bbfe453.js -O ./dist/apps/remix-ide/assets/js/soljson-v0.6.8+commit.0bbfe453.js |
||||
wget --no-check-certificate https://binaries.soliditylang.org/bin/soljson-v0.8.1+commit.df193b15.js -O ./dist/apps/remix-ide/assets/js/soljson-v0.8.1+commit.df193b15.js |
||||
wget --no-check-certificate https://binaries.soliditylang.org/bin/soljson-v0.6.5+commit.f956cc89.js -O ./dist/apps/remix-ide/assets/js/soljson-v0.6.5+commit.f956cc89.js |
||||
wget --no-check-certificate https://binaries.soliditylang.org/bin/soljson-v0.6.8-nightly.2020.5.14+commit.a6d0067b.js -O ./dist/apps/remix-ide/assets/js/soljson-v0.6.8-nightly.2020.5.14+commit.a6d0067b.js |
||||
wget --no-check-certificate https://binaries.soliditylang.org/bin/soljson-v0.6.0-nightly.2019.12.17+commit.d13438ee.js -O ./dist/apps/remix-ide/assets/js/soljson-v0.6.0-nightly.2019.12.17+commit.d13438ee.js |
||||
wget --no-check-certificate https://binaries.soliditylang.org/bin/soljson-v0.6.12+commit.27d51765.js -O ./dist/apps/remix-ide/assets/js/soljson-v0.6.12+commit.27d51765.js |
Loading…
Reference in new issue