This repository was archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update some packages * utilizing `node_modules/.cache` * implement metaMaskDownloader progress messages * improve CI * implement downloader CLI
- Loading branch information
Showing
6 changed files
with
95 additions
and
33 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
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,4 @@ | ||
#!/usr/bin/env node | ||
"use strict" | ||
|
||
require("../dist/bin/downloader.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
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,30 @@ | ||
import path from "path"; | ||
import { RECOMMENDED_METAMASK_VERSION } from "../constants"; | ||
import downloader, { | ||
defaultDirectory, | ||
} from "../setup/utils/metaMaskDownloader"; | ||
|
||
console.log(`Running MetaMask extension downloader`, "\n"); | ||
|
||
let flask = false; | ||
let version = RECOMMENDED_METAMASK_VERSION; | ||
let destination = defaultDirectory; | ||
|
||
for (let i = 2; i < process.argv.length; i++) { | ||
const arg = process.argv[i]; | ||
if (arg === "--flask") flask = true; | ||
else if (arg === "--version" || arg === "-v") version = process.argv[++i]; | ||
else if (arg === "--destination" || arg === "-d") | ||
destination = path.resolve(process.argv[++i]); | ||
else { | ||
console.error(`Unknown argument ${arg}`); | ||
process.exit(); | ||
} | ||
} | ||
|
||
void (async function () { | ||
await downloader(version, { | ||
flask, | ||
location: destination, | ||
}); | ||
})(); |
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
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 |
---|---|---|
|
@@ -1773,11 +1773,6 @@ | |
"@typescript-eslint/types" "5.39.0" | ||
eslint-visitor-keys "^3.3.0" | ||
|
||
"@ungap/[email protected]": | ||
version "1.1.2" | ||
resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44" | ||
integrity sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q== | ||
|
||
JSONStream@^1.0.3: | ||
version "1.3.5" | ||
resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0" | ||
|
@@ -4397,12 +4392,11 @@ mkdirp@^1.0.4: | |
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" | ||
integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== | ||
|
||
mocha@^10.0.0: | ||
version "10.0.0" | ||
resolved "https://registry.yarnpkg.com/mocha/-/mocha-10.0.0.tgz#205447d8993ec755335c4b13deba3d3a13c4def9" | ||
integrity sha512-0Wl+elVUD43Y0BqPZBzZt8Tnkw9CMUdNYnUsTfOM1vuhJVZL+kiesFYsqwBkEEuEixaiPe5ZQdqDgX2jddhmoA== | ||
mocha@^10.2.0: | ||
version "10.2.0" | ||
resolved "https://registry.yarnpkg.com/mocha/-/mocha-10.2.0.tgz#1fd4a7c32ba5ac372e03a17eef435bd00e5c68b8" | ||
integrity sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg== | ||
dependencies: | ||
"@ungap/promise-all-settled" "1.1.2" | ||
ansi-colors "4.1.1" | ||
browser-stdout "1.3.1" | ||
chokidar "3.5.3" | ||
|
@@ -5750,10 +5744,10 @@ tr46@~0.0.3: | |
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" | ||
integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== | ||
|
||
ts-node@10.8.1: | ||
version "10.8.1" | ||
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.8.1.tgz#ea2bd3459011b52699d7e88daa55a45a1af4f066" | ||
integrity sha512-Wwsnao4DQoJsN034wePSg5nZiw4YKXf56mPIAeD6wVmiv+RytNSWqc2f3fKvcUoV+Yn2+yocD71VOfQHbmVX4g== | ||
ts-node@^10.9.1: | ||
version "10.9.1" | ||
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.1.tgz#e73de9102958af9e1f0b168a6ff320e25adcff4b" | ||
integrity sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw== | ||
dependencies: | ||
"@cspotcode/source-map-support" "^0.8.0" | ||
"@tsconfig/node10" "^1.0.7" | ||
|