feat: Windows 桌面版支持#24
Open
daodao166888 wants to merge 1 commit into
Open
Conversation
## 改动内容 - electron/main.js: Windows 标题栏适配 (titleBarOverlay)、截图目录检测、剪贴板文件复制、终端 cwd 获取 - public/app.js: 添加 modKey() 函数,快捷键符号自动适配 (macOS→⌘, Windows→Ctrl)、平台 CSS 类 - public/style.css: 交通灯 padding 仅 macOS 生效、Windows 用不透明侧栏背景、拖拽区域优化 - package.json: 添加 Windows NSIS 安装包构建配置 - build/icon.ico: 新增 Windows 图标文件 (16-256px) ## 技术细节 - 标题栏: 使用 titleBarStyle='hidden' + titleBarOverlay 实现自定义标题栏 - 截图监听: Windows 监听 ~/Pictures/Screenshots 目录 - 剪贴板: 使用 PowerShell 的 Set-Clipboard -Path 实现文件复制 - 快捷键: 根据平台动态显示 Ctrl 或 ⌘ ## 测试环境 - Windows 11 Pro - Node.js v24.14.1 - Electron 33.4.11
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.
🪟 Windows 桌面版支持
改动内容
技术细节
测试环境
说明
我是文科生,不会写代码,用 Claude Code 完成了这次适配。希望能让更多 Windows 用户用上 FanBox!
已发布 Windows 版:https://github.com/daodao166888/fanbox-windows