Merge pull request #2052 from gnosis/backmerge-release-3.1.3
Backmerge Release v3.1.3 - Desktop app
This commit is contained in:
commit
8d8a971313
|
@ -79,12 +79,17 @@ jobs:
|
||||||
REACT_APP_INTERCOM_ID: ${{ secrets.REACT_APP_INTERCOM_ID }}
|
REACT_APP_INTERCOM_ID: ${{ secrets.REACT_APP_INTERCOM_ID }}
|
||||||
REACT_APP_IPFS_GATEWAY: ${{ secrets.REACT_APP_IPFS_GATEWAY }}
|
REACT_APP_IPFS_GATEWAY: ${{ secrets.REACT_APP_IPFS_GATEWAY }}
|
||||||
|
|
||||||
|
- name: Configure AWS credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
|
||||||
|
|
||||||
# Script to deploy Pull Requests
|
# Script to deploy Pull Requests
|
||||||
- run: bash ./scripts/github/deploy_pull_request.sh
|
- run: bash ./scripts/github/deploy_pull_request.sh
|
||||||
if: success() && github.event.number
|
if: success() && github.event.number
|
||||||
env:
|
env:
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
PR_NUMBER: ${{ github.event.number }}
|
PR_NUMBER: ${{ github.event.number }}
|
||||||
REVIEW_BUCKET_NAME: ${{ secrets.AWS_REVIEW_BUCKET_NAME }}
|
REVIEW_BUCKET_NAME: ${{ secrets.AWS_REVIEW_BUCKET_NAME }}
|
||||||
REACT_APP_NETWORK: ${{ env.REACT_APP_NETWORK }}
|
REACT_APP_NETWORK: ${{ env.REACT_APP_NETWORK }}
|
||||||
|
@ -101,13 +106,6 @@ jobs:
|
||||||
env:
|
env:
|
||||||
REVIEW_FEATURE_URL: https://pr${{ github.event.number }}--${{ env.REPO_NAME_ALPHANUMERIC }}.review.gnosisdev.com
|
REVIEW_FEATURE_URL: https://pr${{ github.event.number }}--${{ env.REPO_NAME_ALPHANUMERIC }}.review.gnosisdev.com
|
||||||
|
|
||||||
- name: Configure AWS credentials
|
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
|
||||||
with:
|
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
|
|
||||||
|
|
||||||
# Script to deploy to development environment
|
# Script to deploy to development environment
|
||||||
# EWC build is never created in development branch
|
# EWC build is never created in development branch
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Remove broken apt repos [Ubuntu]
|
- name: Remove broken apt repos [Ubuntu]
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: ${{ matrix.os }} == 'ubuntu-latest'
|
||||||
run: |
|
run: |
|
||||||
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
|
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -91,8 +91,6 @@ jobs:
|
||||||
- run: bash ./scripts/github/deploy_pull_request.sh
|
- run: bash ./scripts/github/deploy_pull_request.sh
|
||||||
if: success() && github.event.number
|
if: success() && github.event.number
|
||||||
env:
|
env:
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
PR_NUMBER: ${{ github.event.number }}
|
PR_NUMBER: ${{ github.event.number }}
|
||||||
REVIEW_BUCKET_NAME: ${{ secrets.AWS_REVIEW_BUCKET_NAME }}
|
REVIEW_BUCKET_NAME: ${{ secrets.AWS_REVIEW_BUCKET_NAME }}
|
||||||
REACT_APP_NETWORK: ${{ env.REACT_APP_NETWORK }}
|
REACT_APP_NETWORK: ${{ env.REACT_APP_NETWORK }}
|
||||||
|
|
|
@ -79,12 +79,17 @@ jobs:
|
||||||
REACT_APP_INTERCOM_ID: ${{ secrets.REACT_APP_INTERCOM_ID }}
|
REACT_APP_INTERCOM_ID: ${{ secrets.REACT_APP_INTERCOM_ID }}
|
||||||
REACT_APP_IPFS_GATEWAY: ${{ secrets.REACT_APP_IPFS_GATEWAY }}
|
REACT_APP_IPFS_GATEWAY: ${{ secrets.REACT_APP_IPFS_GATEWAY }}
|
||||||
|
|
||||||
|
- name: Configure AWS credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
|
||||||
|
|
||||||
# Script to deploy Pull Requests
|
# Script to deploy Pull Requests
|
||||||
- run: bash ./scripts/github/deploy_pull_request.sh
|
- run: bash ./scripts/github/deploy_pull_request.sh
|
||||||
if: success() && github.event.number
|
if: success() && github.event.number
|
||||||
env:
|
env:
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
PR_NUMBER: ${{ github.event.number }}
|
PR_NUMBER: ${{ github.event.number }}
|
||||||
REVIEW_BUCKET_NAME: ${{ secrets.AWS_REVIEW_BUCKET_NAME }}
|
REVIEW_BUCKET_NAME: ${{ secrets.AWS_REVIEW_BUCKET_NAME }}
|
||||||
REACT_APP_NETWORK: ${{ env.REACT_APP_NETWORK }}
|
REACT_APP_NETWORK: ${{ env.REACT_APP_NETWORK }}
|
||||||
|
@ -101,14 +106,6 @@ jobs:
|
||||||
env:
|
env:
|
||||||
REVIEW_FEATURE_URL: https://pr${{ github.event.number }}--${{ env.REPO_NAME_ALPHANUMERIC }}.review.gnosisdev.com
|
REVIEW_FEATURE_URL: https://pr${{ github.event.number }}--${{ env.REPO_NAME_ALPHANUMERIC }}.review.gnosisdev.com
|
||||||
|
|
||||||
- name: Configure AWS credentials
|
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
|
||||||
with:
|
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
|
|
||||||
|
|
||||||
|
|
||||||
# Script to deploy to development environment
|
# Script to deploy to development environment
|
||||||
# Volta build is never created in development branch
|
# Volta build is never created in development branch
|
||||||
|
|
||||||
|
|
|
@ -79,12 +79,17 @@ jobs:
|
||||||
REACT_APP_INTERCOM_ID: ${{ secrets.REACT_APP_INTERCOM_ID }}
|
REACT_APP_INTERCOM_ID: ${{ secrets.REACT_APP_INTERCOM_ID }}
|
||||||
REACT_APP_IPFS_GATEWAY: ${{ secrets.REACT_APP_IPFS_GATEWAY }}
|
REACT_APP_IPFS_GATEWAY: ${{ secrets.REACT_APP_IPFS_GATEWAY }}
|
||||||
|
|
||||||
|
- name: Configure AWS credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
|
||||||
|
|
||||||
# Script to deploy Pull Requests
|
# Script to deploy Pull Requests
|
||||||
- run: bash ./scripts/github/deploy_pull_request.sh
|
- run: bash ./scripts/github/deploy_pull_request.sh
|
||||||
if: success() && github.event.number
|
if: success() && github.event.number
|
||||||
env:
|
env:
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
PR_NUMBER: ${{ github.event.number }}
|
PR_NUMBER: ${{ github.event.number }}
|
||||||
REVIEW_BUCKET_NAME: ${{ secrets.AWS_REVIEW_BUCKET_NAME }}
|
REVIEW_BUCKET_NAME: ${{ secrets.AWS_REVIEW_BUCKET_NAME }}
|
||||||
REACT_APP_NETWORK: ${{ env.REACT_APP_NETWORK }}
|
REACT_APP_NETWORK: ${{ env.REACT_APP_NETWORK }}
|
||||||
|
@ -101,13 +106,6 @@ jobs:
|
||||||
env:
|
env:
|
||||||
REVIEW_FEATURE_URL: https://pr${{ github.event.number }}--${{ env.REPO_NAME_ALPHANUMERIC }}.review.gnosisdev.com
|
REVIEW_FEATURE_URL: https://pr${{ github.event.number }}--${{ env.REPO_NAME_ALPHANUMERIC }}.review.gnosisdev.com
|
||||||
|
|
||||||
- name: Configure AWS credentials
|
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
|
||||||
with:
|
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
|
|
||||||
|
|
||||||
# Script to deploy to development environment
|
# Script to deploy to development environment
|
||||||
# xDai build is never created in development branch
|
# xDai build is never created in development branch
|
||||||
|
|
||||||
|
|
|
@ -19,17 +19,18 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
max-parallel: 15
|
max-parallel: 15
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, windows-latest, ubuntu-20.04]
|
os: [macos-latest, windows-latest, ubuntu-18.04]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out Git repository
|
- name: Check out Git repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: actions/cache@v2
|
# Linux build patches
|
||||||
with:
|
- name: Install linux dependencies
|
||||||
path: '**/node_modules'
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev
|
||||||
|
|
||||||
|
# Windows build patches
|
||||||
- name: Patch node gyp on windows to support Visual Studio 2019
|
- name: Patch node gyp on windows to support Visual Studio 2019
|
||||||
if: startsWith(matrix.os, 'windows')
|
if: startsWith(matrix.os, 'windows')
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
@ -41,18 +42,20 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
yarn global add node-gyp
|
yarn global add node-gyp
|
||||||
yarn config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"
|
yarn config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"
|
||||||
|
|
||||||
|
# Load node_modules cache action
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: '**/node_modules'
|
||||||
|
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
|
||||||
- name: Install Node.js, NPM and Yarn
|
- name: Install Node.js, NPM and Yarn
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 14
|
||||||
- run: |
|
|
||||||
# Due to some dependencies yarn may randomly throw an error about invalid cache
|
- name: Run yarn install
|
||||||
# This approach is taken from https://github.com/yarnpkg/yarn/issues/7212#issuecomment-506155894 to fix the issue
|
run: yarn install --frozen-lockfile --network-concurrency 1
|
||||||
# Another approach is to install with flag --network-concurrency 1, but this will make the installation pretty slow (default value is 8)
|
|
||||||
mkdir .yarncache
|
|
||||||
yarn install --cache-folder ./.yarncache --frozen-lockfile
|
|
||||||
rm -rf .yarncache
|
|
||||||
yarn cache clean
|
|
||||||
|
|
||||||
- name: Build/Release Desktop App
|
- name: Build/Release Desktop App
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -89,7 +89,9 @@ function createWindow(port = DEFAULT_PORT) {
|
||||||
height: 768,
|
height: 768,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
preload: path.join(__dirname, '../scripts/preload.js'),
|
preload: path.join(__dirname, '../scripts/preload.js'),
|
||||||
allowRunningInsecureContent: true,
|
experimentalFeatures: true,
|
||||||
|
nodeIntegration: true,
|
||||||
|
// allowRunningInsecureContent: true,
|
||||||
enableRemoteModule: true,
|
enableRemoteModule: true,
|
||||||
nativeWindowOpen: true, // need to be set in order to display modal
|
nativeWindowOpen: true, // need to be set in order to display modal
|
||||||
},
|
},
|
||||||
|
@ -142,7 +144,7 @@ process.on('uncaughtException', function (error) {
|
||||||
})
|
})
|
||||||
|
|
||||||
app.userAgentFallback =
|
app.userAgentFallback =
|
||||||
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) old-airport-include/1.0.0 Chrome Electron/9.4.1 Safari/537.36'
|
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) old-airport-include/1.0.0 Chrome Electron/11.3.0 Safari/537.36'
|
||||||
|
|
||||||
// We have one non-context-aware module in node_modules/usb. This is used by @ledgerhq/hw-transport-node-hid
|
// We have one non-context-aware module in node_modules/usb. This is used by @ledgerhq/hw-transport-node-hid
|
||||||
// This type of modules will be impossible to use after electron 10
|
// This type of modules will be impossible to use after electron 10
|
||||||
|
|
13
yarn.lock
13
yarn.lock
|
@ -3503,7 +3503,12 @@
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.54.tgz#a737488631aca3ec7bd9f6229d77f1079e444793"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.54.tgz#a737488631aca3ec7bd9f6229d77f1079e444793"
|
||||||
integrity sha512-c8Lm7+hXdSPmWH4B9z/P/xIXhFK3mCQin4yCYMd2p1qpMG5AfgyJuYZ+3q2dT7qLiMMMGMd5dnkFpdqJARlvtQ==
|
integrity sha512-c8Lm7+hXdSPmWH4B9z/P/xIXhFK3mCQin4yCYMd2p1qpMG5AfgyJuYZ+3q2dT7qLiMMMGMd5dnkFpdqJARlvtQ==
|
||||||
|
|
||||||
"@types/node@^12.0.12", "@types/node@^12.12.6", "@types/node@^12.6.1":
|
"@types/node@^12.0.12":
|
||||||
|
version "12.20.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.5.tgz#4ca82a766f05c359fd6c77505007e5a272f4bb9b"
|
||||||
|
integrity sha512-5Oy7tYZnu3a4pnJ//d4yVvOImExl4Vtwf0D40iKUlU+XlUsyV9iyFWyCFlwy489b72FMAik/EFwRkNLjjOdSPg==
|
||||||
|
|
||||||
|
"@types/node@^12.12.6", "@types/node@^12.6.1":
|
||||||
version "12.20.4"
|
version "12.20.4"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.4.tgz#73687043dd00fcb6962c60fbf499553a24d6bdf2"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.4.tgz#73687043dd00fcb6962c60fbf499553a24d6bdf2"
|
||||||
integrity sha512-xRCgeE0Q4pT5UZ189TJ3SpYuX/QGl6QIAOAIeDSbAVAd2gX1NxSZup4jNVK7cxIeP8KDSbJgcckun495isP1jQ==
|
integrity sha512-xRCgeE0Q4pT5UZ189TJ3SpYuX/QGl6QIAOAIeDSbAVAd2gX1NxSZup4jNVK7cxIeP8KDSbJgcckun495isP1jQ==
|
||||||
|
@ -8843,9 +8848,9 @@ entities@~2.1.0:
|
||||||
integrity sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==
|
integrity sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==
|
||||||
|
|
||||||
env-paths@^2.2.0:
|
env-paths@^2.2.0:
|
||||||
version "2.2.0"
|
version "2.2.1"
|
||||||
resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.0.tgz#cdca557dc009152917d6166e2febe1f039685e43"
|
resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.1.tgz#420399d416ce1fbe9bc0a07c62fa68d67fd0f8f2"
|
||||||
integrity sha512-6u0VYSCo/OW6IoD5WCLLy9JUGARbamfSavcNXry/eu8aHVFei6CD3Sw+VGX5alea1i9pgPHW0mbu6Xj0uBh7gA==
|
integrity sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==
|
||||||
|
|
||||||
errlop@^4.0.0:
|
errlop@^4.0.0:
|
||||||
version "4.1.0"
|
version "4.1.0"
|
||||||
|
|
Loading…
Reference in New Issue