Skip to main content

desktop-app

Desktop app development guide for cross-platform applications. Covers Electron and Tauri frameworks. Use proactively when user wants to build desktop applications. Triggers: desktop app, Electron, Tauri, mac app, windows app, 데스크톱 앱, 데스크탑 앱, デスクトップアプリ, デスクトップ, 桌面应用, 桌面程序, aplicación de escritorio, app de escritorio, application de bureau, app desktop, Desktop-Anwendung, Desktop-App, applicazione desktop, app desktop Do NOT use for: web-only projects, mobile apps

来源信息

仓库
ww-w-ai/bkit-gemini
最近来源活动
2026年3月11日 04:41
检测到的 SKILL.md 语言
英语
星标
66
分支
16

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
desktop-app
classification
C
description
Desktop app development guide for cross-platform applications. Covers Electron and Tauri frameworks. Use proactively when user wants to build desktop applications. Triggers: desktop app, Electron, Tauri, mac app, windows app, 데스크톱 앱, 데스크탑 앱, デスクトップアプリ, デスクトップ, 桌面应用, 桌面程序, aplicación de escritorio, app de escritorio, application de bureau, app desktop, Desktop-Anwendung, Desktop-App, applicazione desktop, app desktop Do NOT use for: web-only projects, mobile apps
user-invocable
true
argument-hint
[electron|tauri]
allowed-tools
["read_file","write_file","replace","glob","grep_search","run_shell_command","google_web_search"]
imports
[]
agents
{}
context
session
memory
project
pdca-phase
all
# Desktop App Skill > Build cross-platform desktop applications ## Frameworks ### Tauri (Recommended) Lightweight, secure, Rust-based. ```bash # Create new Tauri project npm create tauri-app cd my-app npm run tauri dev ``` **Pros:** - Small bundle size (~5MB) - High performance - Better security - Use any frontend framework ### Electron Chromium-based, widely used. ```bash # Create with electron-forge npm init electron-app@latest my-app cd my-app npm start ``` **Pros:** - Mature ecosystem - Large community - Easy to learn - Full Node.js access ## Project Structure (Tauri) ``` my-app/ ├── src/ # Frontend (React, Vue, etc.) │ ├── App.tsx │ └── main.tsx ├── src-tauri/ # Rust backend │ ├── src/ │ │ └── main.rs │ ├── tauri.conf.json │ └── Cargo.toml └── package.json ``` ## Key Features ### System Tray ```rust // src-tauri/src/main.rs use tauri::SystemTray; fn main() { let tray = SystemTray::new(); tauri::Builder::default() .system_tray(tray) .run(tauri::generate_context!()) .expect("error"); } ``` ### Native Dialogs ```typescript // Frontend import { open, save } from '@tauri-apps/api/dialog'; async function openFile() { const selected = await open({ filters: [{ name: 'Text', extensions: ['txt'] }] }); return selected; } ``` ### File System ```typescript import { readTextFile, writeTextFile } from '@tauri-apps/api/fs'; async function saveFile(path: string, content: string) { await writeTextFile(path, content); } ``` ## Deployment - **macOS**: .dmg, .app - **Windows**: .msi, .exe - **Linux**: .deb, .AppImage ```bash # Build for all platforms npm run tauri build ```
在 GitHub 查看