From d6f926524c7d4f5293546d8bb468396e11108b9d Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 18 Aug 2022 17:04:32 -0700 Subject: [PATCH] fix: safari wasm error --- .github/workflows/build-all.yml | 3 ++- .github/workflows/macos-deploy.yml | 2 +- packages/extension/configs/browser-build.js | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index fbc3276e5..41c60ae3c 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -35,7 +35,8 @@ jobs: VIRUS_TOTAL_API_KEY: ${{secrets.VIRUS_TOTAL_API_KEY}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} run: | - docker run --rm -v `pwd`:/home:rw enkrypt-build-container /bin/bash -c "cd packages/extension && yarn build:all && yarn zip" + docker run --rm -v `pwd`:/home:rw enkrypt-build-container /bin/bash -c "cd packages/extension && yarn build:all" + docker run --rm -v `pwd`:/home:rw enkrypt-build-container /bin/bash -c "cd packages/extension && yarn build:chrome && yarn zip" FILE_SHA256=`sha256sum ./packages/extension/dist/release.zip | awk '{print $1}'` curl --request GET --url https://www.virustotal.com/api/v3/files/upload_url --header "x-apikey: $VIRUS_TOTAL_API_KEY" UPLOAD_URL=`curl --request GET --url https://www.virustotal.com/api/v3/files/upload_url --header "x-apikey: $VIRUS_TOTAL_API_KEY" | jq --raw-output '.data'` diff --git a/.github/workflows/macos-deploy.yml b/.github/workflows/macos-deploy.yml index 4d56b9064..ecefd4003 100644 --- a/.github/workflows/macos-deploy.yml +++ b/.github/workflows/macos-deploy.yml @@ -58,7 +58,7 @@ jobs: name: safari-build-artifact path: packages/extension/dist - - name: Deploy iOS Beta to TestFlight via Fastlane + - name: Deploy via Fastlane uses: maierj/fastlane-action@v2.2.0 with: lane: "buildandrelease" diff --git a/packages/extension/configs/browser-build.js b/packages/extension/configs/browser-build.js index d3bf27e21..1f0788e51 100644 --- a/packages/extension/configs/browser-build.js +++ b/packages/extension/configs/browser-build.js @@ -64,7 +64,8 @@ const setConfig = (config) => { const _base = args[0]["process.env"]; args[0]["process.env"] = { ..._base, - IS_MANIFEST_V3: BROWSER === browserNames.chrome, + IS_MANIFEST_V3: + BROWSER === browserNames.chrome || BROWSER === browserNames.safari, PACKAGE_VERSION: JSON.stringify(package.version), IS_DEV: process.env.NODE_ENV === "development", IS_FIREFOX: BROWSER === browserNames.firefox,