From d601018fc487b8b8ae050c303ae89319c63cbdac Mon Sep 17 00:00:00 2001 From: "r3kt.eth" Date: Sun, 14 May 2023 23:47:23 +0200 Subject: [PATCH 1/4] readme improvement Signed-off-by: r3kt.eth --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 25cadac08..ee7fd0c52 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,11 @@ [![CodeQL](https://github.com/Synthetixio/synpress/actions/workflows/codeql.yml/badge.svg?branch=master)](https://github.com/Synthetixio/synpress/actions/workflows/codeql.yml) [![Release CI](https://github.com/Synthetixio/synpress/actions/workflows/release.yml/badge.svg?branch=master)](https://github.com/Synthetixio/synpress/actions/workflows/release.yml) [![synpress](https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/count/ohpeaz/master&style=flat&logo=cypress)](https://dashboard.cypress.io/projects/ohpeaz/runs) -[![Discord](https://img.shields.io/discord/413890591840272394.svg?color=768AD4&label=discord&logo=https%3A%2F%2Fdiscordapp.com%2Fassets%2F8c9701b98ad4372b58f13fd9f65f966e.svg)](https://discordapp.com/channels/413890591840272394/) -[![Twitter Follow](https://img.shields.io/twitter/follow/synthetix_io.svg?label=synthetix_io&style=social)](https://twitter.com/synthetix_io) +[![Discord](https://img.shields.io/discord/1103781993394733136.svg?color=768AD4&label=discord&logo=https%3A%2F%2Fdiscordapp.com%2Fassets%2F8c9701b98ad4372b58f13fd9f65f966e.svg)](https://discord.gg/XhZKSRGtWc) +[![Twitter Follow](https://img.shields.io/twitter/follow/synpress_.svg?label=synpress&style=social)](https://twitter.com/synpress_) -> **We're Hiring 🎉** — Think you have what it takes? -> Feel free to drop an email to [jobs@synpress.io](mailto:jobs@synpress.io) +> **We're Hiring 🎉** — Think you have what it takes? +> Feel free to drop an email to [jobs@synpress.io](mailto:jobs@synpress.io). # @@ -63,6 +63,7 @@ more details. # Table of content +- [🧑‍🤝‍🧑 Community](-community) - [🖥️ Install](#%EF%B8%8F-install) - [⚙️ Supported frameworks](#%EF%B8%8F-supported-frameworks) - [👝 Supported wallets](#-supported-wallets) @@ -77,6 +78,12 @@ more details. - [🚢 Release process](#-release-process) - [📝 More resources](#-more-resources) +## 🧑‍🤝‍🧑 Community + +- [Discord](https://discord.gg/XhZKSRGtWc) => for **live support** and direct chat with devs. +- [Twitter](https://twitter.com/synpress_) => for updates and announcements. +- [GitHub Discussions](https://github.com/Synthetixio/synpress/discussions) => for technical questions and feature requests. + ## 🖥️ Install ```bash From 63b6e218a438ee2ad54047912f53b6036391b6a0 Mon Sep 17 00:00:00 2001 From: "r3kt.eth" Date: Mon, 15 May 2023 22:55:48 +0200 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ee7fd0c52..913136ae5 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![Twitter Follow](https://img.shields.io/twitter/follow/synpress_.svg?label=synpress&style=social)](https://twitter.com/synpress_) > **We're Hiring 🎉** — Think you have what it takes? -> Feel free to drop an email to [jobs@synpress.io](mailto:jobs@synpress.io). +> We're looking for Software Engineer, [find out more](https://mirror.xyz/synpress.eth/FXhd5-7e7wBmYYtfmqkF0h7FhDBRUGuGF6j-D7jPpvM). # From 3653abe19bba94d445324acabf5f5f64150fa503 Mon Sep 17 00:00:00 2001 From: "r3kt.eth" Date: Wed, 17 May 2023 19:57:52 +0200 Subject: [PATCH 3/4] add app-root-path Signed-off-by: r3kt.eth --- package.json | 1 + pnpm-lock.yaml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/package.json b/package.json index 60fc241d4..a58be9f0a 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "@testing-library/react": "^14.0.0", "@types/testing-library__cypress": "^5.0.9", "@viem/anvil": "^0.0.5", + "app-root-path": "^3.1.0", "axios": "^1.4.0", "babel-plugin-istanbul": "^6.1.1", "babel-plugin-react-generate-property": "^1.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e9efc7f20..b551d067c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -34,6 +34,9 @@ dependencies: '@viem/anvil': specifier: ^0.0.5 version: 0.0.5(debug@4.3.4) + app-root-path: + specifier: ^3.1.0 + version: 3.1.0 axios: specifier: ^1.4.0 version: 1.4.0(debug@4.3.4) @@ -2660,6 +2663,11 @@ packages: picomatch: 2.3.1 dev: false + /app-root-path@3.1.0: + resolution: {integrity: sha512-biN3PwB2gUtjaYy/isrU3aNWI5w+fAfvHkSvCKeQGxhmYpwKFUxudR3Yya+KqVRHBmEDYh+/lTozYCFbmzX4nA==} + engines: {node: '>= 6.0.0'} + dev: false + /append-transform@2.0.0: resolution: {integrity: sha512-7yeyCEurROLQJFv5Xj4lEGTy0borxepjFv1g22oAdqFu//SrAlDl1O1Nxx15SH1RoliUml6p8dwJW9jvZughhg==} engines: {node: '>=8'} From 39e9c41f938e6385e96b7bf820b5ed9177ac9f41 Mon Sep 17 00:00:00 2001 From: "r3kt.eth" Date: Wed, 17 May 2023 20:53:19 +0200 Subject: [PATCH 4/4] fix issue with download on windows Signed-off-by: r3kt.eth --- helpers.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/helpers.js b/helpers.js index 22b333793..6685b070a 100644 --- a/helpers.js +++ b/helpers.js @@ -6,6 +6,8 @@ const { ethers } = require('ethers'); const download = require('download'); const packageJson = require('./package.json'); const chains = require('viem/chains'); +const appRoot = require('app-root-path'); +const os = require('os'); let currentNetwork = chains.mainnet; // list of added networks to metamask @@ -221,7 +223,14 @@ module.exports = { }, async prepareMetamask(version) { const release = await module.exports.getMetamaskReleases(version); - const downloadsDirectory = path.resolve(__dirname, 'downloads'); + + let downloadsDirectory; + if (os.platform() === 'win32') { + downloadsDirectory = appRoot.resolve('/node_modules'); + } else { + downloadsDirectory = path.resolve(__dirname, 'downloads'); + } + await module.exports.createDirIfNotExist(downloadsDirectory); const metamaskDirectory = path.join(downloadsDirectory, release.tagName); const metamaskDirectoryExists = await module.exports.checkDirOrFileExist(