Skip to content

Commit 780f935

Browse files
committed
Fix webview live update
1 parent 5bf0951 commit 780f935

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

android/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ npx @capawesome/cli login
277277

278278
Then, run this to build your local assets and push them to Capawesome. Once done, each mobile app user will receive a notice that there is a new update available, which they can approve to download.
279279
```
280-
yarn build-web
280+
yarn build-web-view
281281
npx @capawesome/cli apps:bundles:create --path web/out
282282
```
283283

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"prod": "./scripts/run_local.sh prod",
1818
"clean-install": "./scripts/install.sh",
1919
"build-web": "./scripts/build_web.sh",
20+
"build-web-view": "./scripts/build_web.sh",
2021
"build-sync-android": "./scripts/build_sync_android.sh",
2122
"sync-android": "./scripts/sync_android.sh",
2223
"migrate": "./scripts/migrate.sh",

scripts/build_sync_android.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ set -e
44

55
cd "$(dirname "$0")"/..
66

7-
export NEXT_PUBLIC_WEBVIEW=1
8-
9-
yarn build-web
7+
yarn build-web-view
108

119
source web/.env
1210

scripts/build_web_view.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
cd "$(dirname "$0")"/..
6+
7+
export NEXT_PUBLIC_WEBVIEW=1
8+
9+
yarn build-web

0 commit comments

Comments
 (0)