Fix webview live update

This commit is contained in:
MartinBraquet
2025-11-14 18:53:25 +01:00
parent 5bf095178d
commit 780f935fea
4 changed files with 12 additions and 4 deletions

View File

@@ -277,7 +277,7 @@ npx @capawesome/cli login
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.
```
yarn build-web
yarn build-web-view
npx @capawesome/cli apps:bundles:create --path web/out
```

View File

@@ -17,6 +17,7 @@
"prod": "./scripts/run_local.sh prod",
"clean-install": "./scripts/install.sh",
"build-web": "./scripts/build_web.sh",
"build-web-view": "./scripts/build_web.sh",
"build-sync-android": "./scripts/build_sync_android.sh",
"sync-android": "./scripts/sync_android.sh",
"migrate": "./scripts/migrate.sh",

View File

@@ -4,9 +4,7 @@ set -e
cd "$(dirname "$0")"/..
export NEXT_PUBLIC_WEBVIEW=1
yarn build-web
yarn build-web-view
source web/.env

9
scripts/build_web_view.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -e
cd "$(dirname "$0")"/..
export NEXT_PUBLIC_WEBVIEW=1
yarn build-web