#!/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