diff --git a/deno.json b/deno.json index fe32c33..3fafd19 100644 --- a/deno.json +++ b/deno.json @@ -12,7 +12,7 @@ "build": "deno run -A npm:vite build", "start": "deno run --env-file --unstable-cron -A build/index.js", "desktop:build": "deno run -A --env-file=.env.desktop npm:vite build", - "desktop": "deno desktop --env-file=.env.desktop --unstable-cron --no-check -A .", + "desktop": "deno desktop --env-file=.env.desktop --unstable-cron --no-check --include=./migrations -A .", "check": "deno run -A npm:@sveltejs/kit/svelte-kit sync && deno run -A npm:svelte-check --tsconfig ./tsconfig.json", "test": "deno test -A src", "fmt": "deno fmt", diff --git a/openspec/changes/add-desktop-local-remote-modes/tasks.md b/openspec/changes/add-desktop-local-remote-modes/tasks.md index 37a1515..faf96d0 100644 --- a/openspec/changes/add-desktop-local-remote-modes/tasks.md +++ b/openspec/changes/add-desktop-local-remote-modes/tasks.md @@ -27,10 +27,22 @@ `@deno/svelte-adapter`, selected via `QUANTUM_TARGET=desktop` in vite.config.ts (server/container stays adapter-node). (3) the Deno adapter's generated `handler.ts` type-skews against `@sveltejs/kit@2.69.2` - (`RouteParam.matcher`), so compile needs `--no-check`. Result: - `deno task desktop` compiles `quantum.dll`, pulls the laufey webview backend, - and bundles (exit 0). **REMAINING: launch the window on a real display** and - confirm the app renders in local mode — that's the live check (with Graham). + (`RouteParam.matcher`), so compile needs `--no-check`. (4) the compiled binary + reads `migrations/` off disk via a relative path that isn't bundled; fixed + with `--include=./migrations`. With those, the binary **boots**: runtime + loads, `getConfig()` succeeds in local mode (env baked from `.env.desktop`), + it binds a real `127.0.0.1:` (confirming spike 1.2 empirically), + and migrations run. **BLOCKED (upstream):** serving static client assets + crashes — `@deno/experimental-route-config@0.0.5` (via + `@deno/svelte-adapter@0.2.1`, both latest) tries to `open` the literal + catch-all pattern `…/_app/immutable/:file*` instead of the resolved filename; + `:`/`*` are illegal in Windows paths (os error 123). Not our code; no released + fix. A working native window on Windows is blocked until the adapter is fixed + upstream or we bypass it with a custom `Deno.serve` entrypoint (the docs' + escape hatch). Also: `deno desktop .` compiles then exits (run the emitted + `quantum/quantum.exe`); `--hmr` runs the `dev` task, which loads `.env` + (server config) and collides with local mode — neither gives a quick live + window today. ## 2. Build and mode plumbing