From 259474268a787bb6627d9bcd11379f57b53f7741 Mon Sep 17 00:00:00 2001 From: Cal Leung Date: Mon, 18 Mar 2024 16:16:05 -0700 Subject: [PATCH] fix: Fix/7.18.0 revert build script change (#8979) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## **Description** Reverts PR https://github.com/MetaMask/metamask-mobile/pull/8919, which broke E2E tests ## **Related issues** Fixes: ## **Manual testing steps** 1. Go to this page... 2. 3. ## **Screenshots/Recordings** ### **Before** ### **After** ## **Pre-merge author checklist** - [ ] I’ve followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've clearly explained what problem this PR is solving and how it is solved. - [ ] I've linked related issues - [ ] I've included manual testing steps - [ ] I've included screenshots/recordings if applicable - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. - [ ] I’ve properly set the pull request status: - [ ] In case it's not yet "ready for review", I've set it to "draft". - [ ] In case it's "ready for review", I've changed it from "draft" to "non-draft". ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots. --- README.md | 15 +++++++++++++-- scripts/postinstall.sh | 14 -------------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 2a195c92e10..bbf332302e8 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ Before running the app, make sure your development environment has all the requi ### Building the app **Clone the project** + ```bash git clone git@github.com:MetaMask/metamask-mobile.git && \ cd metamask-mobile @@ -44,22 +45,32 @@ yarn setup _Not the usual install command, this will run scripts and a lengthy postinstall flow_ -_Not the usual install command, this will run scripts and a lengthy postinstall flow_ +**Setup environment variables** + +```bash +cp .ios.env.example .ios.env && \ +cp .android.env.example .android.env && \ +cp .js.env.example .js.env +``` ### Running the app **Run Metro bundler** + ```bash yarn watch ``` + _Like a local server for the app_ **Run on a iOS device** + ```bash -yarn start:ios +yarn start:ios ``` **Run on an Android device** + ```bash yarn start:android ``` diff --git a/scripts/postinstall.sh b/scripts/postinstall.sh index 4276a050a27..f6f059525c7 100755 --- a/scripts/postinstall.sh +++ b/scripts/postinstall.sh @@ -22,17 +22,3 @@ echo "" > ios/release.xcconfig echo "6. Init git submodules" echo "This may take a while..." git submodule update --init - -echo "7. Copy env variables..." - if [ ! -f .js.env ]; then - echo "Creating .js.env..." - cp .js.env.example .js.env - fi - if [ ! -f .android.env ]; then - echo "Creating .android.env..." - cp .android.env.example .android.env - fi - if [ ! -f .ios.env ]; then - echo "Creating .ios.env" - cp .ios.env.example .ios.env - fi