Black screen root cause: Tauri injects nonces into style-src, which makes WebKit drop 'unsafe-inline' and block react-native-web's inline style attributes. style-src is now excluded from CSP modification. Window opens on the home screen so the section menu is reachable. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Wmf3K9nCoEsXvvwkmMnuiM
23 lines
694 B
Bash
Executable File
23 lines
694 B
Bash
Executable File
#!/bin/sh
|
|
# Start the Expo web dev server for `tauri dev`.
|
|
#
|
|
# Runs from src-tauri/ as Tauri's beforeDevCommand, or from desktop/ by hand.
|
|
# Serves the GTD web UI on :8081 (devUrl in tauri.conf.json) with hot reload;
|
|
# the Tauri window loads it and talks to https://gtd.rehbock.xyz/api.
|
|
set -eu
|
|
|
|
if [ -x "$HOME/.hermes/node/bin/node" ]; then
|
|
export PATH="$HOME/.hermes/node/bin:$PATH"
|
|
fi
|
|
|
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
|
case "$HERE" in
|
|
*/desktop/src-tauri/scripts) REPO="$(cd "$HERE/../../.." && pwd)" ;;
|
|
*/desktop/scripts) REPO="$(cd "$HERE/../.." && pwd)" ;;
|
|
*) REPO="$(cd "$HERE/../.." && pwd)" ;;
|
|
esac
|
|
APP_DIR="$REPO/app"
|
|
|
|
cd "$APP_DIR"
|
|
exec npx expo start --web --port 8081
|