Open
Conversation
|
|
||
| const tmpZip = path.join(BINARIES_DIR, `bun-tmp-${Date.now()}.zip`); | ||
| const tmpDir = path.join(BINARIES_DIR, `bun-tmp-${Date.now()}`); | ||
| fs.writeFileSync(tmpZip, buffer); |
Check warning
Code scanning / CodeQL
Network data written to file Medium
| import tailwindCssVitePlugin from '@qwery/tailwind-config/vite'; | ||
| import devtoolsJson from 'vite-plugin-devtools-json'; | ||
| import tsconfigPaths from 'vite-tsconfig-paths'; | ||
| import topLevelAwait from 'vite-plugin-top-level-await'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Removed duplicate GITHUB_TOKEN environment variable.
Add step to generate route types in release workflow
Added a step to install Linux dependencies for Tauri on Ubuntu.
Added a step to copy the api-server to desktop binaries before building the desktop app.
Updated the copy command for api-server to include platform-specific handling and error checking.
…re into feature/test-workflow
Feature/test workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a Tauri-based desktop app (
apps/desktop) so Qwery can run as a native desktop application (Linux, macOS, Windows) instead of only in the browser. The desktop app reuses the same React Router app and UI as the web app, and runs the existing API server as a Bun sidecar so chat, projects, datasources, and MCP work offline-capable in a single window.How
apps/desktopwith Tauri 2, React Router 7, Vite; shares routes and components withapps/webvia path aliases./apiand/qweryto the sidecar; Rust waits for the server to listen before considering the app ready..envis loaded in Rust (dotenvy) and passed to the sidecar soAZURE_RESOURCE_NAMEand other provider vars are available to the API server.predevdownloads Bun and builds the server; desktop build runs extensions build, server build, thentscand React Router build; Tauri packages the binary and sidecars.Review Guide
apps/desktop/src-tauri/src/lib.rs– Tauri setup, sidecar spawn, .env loading, server-ready wait.apps/desktop/app/root.tsx– Root layout, titlebar, RootProviders, desktop API init.apps/desktop/app/components/titlebar.tsx– Native titlebar and menu.apps/desktop/app/routes.ts– Route config reusing web routes.apps/desktop/vite.config.ts– Port, proxy, optimizeDeps, resolve for desktop.apps/desktop/package.json– Scripts and deps (Tauri, React Router, @qwery/ui, etc.).apps/desktop/scripts/download-bun.js– Bun download for the sidecar.Testing
Documentation
User Impact
.env(e.g. Azure) for AI features.Checklist
pnpm test)pnpm lint:fix)pnpm typecheck)