feat(desktop): Tauri mac shell around the web export
Some checks failed
Build & Release APK / check (push) Has been cancelled
Build & Release APK / build (push) Has been cancelled

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
This commit is contained in:
marcuspaico
2026-09-05 01:36:42 +10:00
parent 4dd8d743a7
commit 18a66aba58
18 changed files with 4726 additions and 0 deletions

22
desktop/scripts/dev-web.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/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