From 9096df285f9dab7a314f4fa85a252a3a30a845f2 Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Tue, 5 Nov 2024 00:21:19 +0800 Subject: [PATCH] fix: forget to build plugins --- .github/workflows/build-aab.yml | 5 +++++ .github/workflows/build-apk.yml | 5 +++++ assets/preload/streamChunksPreloadScript.js.html | 1 + 3 files changed, 11 insertions(+) diff --git a/.github/workflows/build-aab.yml b/.github/workflows/build-aab.yml index 0d85fd1..cd3c7ae 100644 --- a/.github/workflows/build-aab.yml +++ b/.github/workflows/build-aab.yml @@ -83,6 +83,11 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- + - name: Build tw plugins & scripts + run: | + pnpm run build:plugin + pnpm run build:preload + - name: Build by eject eas and remove debug signing key for aab run: | pnpm exec expo prebuild -p android --clean diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index 6db18b3..94cd070 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -83,6 +83,11 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- + - name: Build tw plugins & scripts + run: | + pnpm run build:plugin + pnpm run build:preload + - name: Build by eject eas and not remove debug signing key for apk run: pnpm exec expo prebuild -p android --clean diff --git a/assets/preload/streamChunksPreloadScript.js.html b/assets/preload/streamChunksPreloadScript.js.html index 9ca76dd..7d4af64 100644 --- a/assets/preload/streamChunksPreloadScript.js.html +++ b/assets/preload/streamChunksPreloadScript.js.html @@ -130,6 +130,7 @@ script.parentNode.replaceChild(newScript, script); } catch (error) { + // FIXME: can't catch error `SyntaxError: Can't create duplicate variable: 'A'` on iOS console.error("Faile to refresh script tag with error ".concat(error.message, ": newScript, script"), newScript, script, error); } }