Skip to content

Feat/desktop app - #546

Open
zfoong wants to merge 2 commits into
V1.4.6from
feat/desktop-app
Open

zfoong wants to merge 2 commits into
V1.4.6from
feat/desktop-app

Conversation

@zfoong

@zfoong zfoong commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

What and why?
Created a Tauri based desktop app. With option to auto launch on startup. Intend to replace the web browser based craftbot (still available and the default if installed using clone). npm install available at https://www.npmjs.com/package/craftbot.

Note: require code-signing on Windows and Mac

A native desktop app (Rust, Tauri 2, system webview) that shows the UI
the running agent serves, in its own window with a tray icon. It
installs CraftBot when missing, starts it when stopped, and keeps the
agent running when the window is closed. Agent Apps, downloads, links,
notifications and camera/microphone requests work as in a browser.

- desktop/: the app (window, tray, install/start page, permissions).
- launcher/core/: the setup window's install, start and state code,
  moved into a library both apps share. The setup window is unchanged.
- craftbot.py: `open` and `start` open the app instead of a browser
  tab when it is installed; CRAFTBOT_DESKTOP_APP names another
  executable or turns this off.
- UI: system notifications for replies, questions and errors while
  the app's window is in the background (desktop app only).
- desktop.yml: tests and builds on Linux, Windows and macOS; on a v*
  tag, signs the installers and attaches them to the release.
- release.yml, bundle.sh: read MIN_MACOS from its new path.

Signed-off-by: zfoong <tham_yikfoong@outlook.com>
A tray checkbox starts the app at sign-in, in the tray (--hidden). Off
until turned on. Opened at login, the app leaves starting the agent to
CraftBot's own login item, and starts it only once its window opens.

The entry is the app's own ("CraftBot Desktop" on Windows and Linux,
dev.craftos.craftbot on macOS), written with auto-launch directly:
tauri-plugin-autostart writes the path unquoted, which breaks on paths
with spaces.

Tauri's Windows uninstaller deletes the Run value named after the
product, "CraftBot", which is the agent's own login entry. An
uninstaller hook keeps it and removes the app's entry instead.

Signed-off-by: zfoong <tham_yikfoong@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant