Skip to content

feat: Tauri 全平台版本(Windows / macOS / Linux) - #1

Merged
BeetMan merged 2 commits into
mainfrom
feat/cross-platform-tauri
Oct 30, 2026
Merged

BeetMan merged 2 commits into
mainfrom
feat/cross-platform-tauri

Conversation

@BeetMan

@BeetMan BeetMan commented Oct 30, 2026

Copy link
Copy Markdown
Owner

概要

Tauri 版改为主力维护的全平台版本,Electron 版保留为 Windows 备用版本。

改动

  • 目录:windows-tauri/ → tauri/(git mv,保留历史)
  • 第二屏:输出窗口改用 set_simple_fullscreen,macOS 上不再新建独立 Space,直接铺满目标显示器并保持置顶;macOS 按目标显示器缩放使用逻辑坐标,修正 Retina + 外接屏混合缩放时的定位
  • 打包:bundle.targets 改为 all,新增 macOS / Linux 图标,macOS ad-hoc 签名(未公证)
  • 脚本:5 个 PowerShell 脚本合并为跨平台的 scripts/project.mjs(npm run check / sync:version / sync:frontend / check:version);版本检查新增 Cargo.lock,顺带修复其停留在 6.4.4 的问题
  • CI:检查在 Linux 上执行;Tauri 并行构建 Windows .exe、macOS 通用 .dmg、Linux .deb + .AppImage;Electron 继续构建 Windows 便携版和安装版;汇总生成 SHA256SUMS.txt。PR 也会触发完整构建,创建 Release 仍只在推送标签时执行
  • Bug 修复:两处延迟一帧执行的位置恢复(resizePreviewSurface、updateText)会用排队时的旧进度覆盖之后的新定位,导致第二屏打开后收到缓存状态又跳回顶部、导入稿件后可能跳回旧位置。改为期间有新定位时以新定位为准。这也是 output applies ordered protocol messages… 测试在并行运行时随机失败的原因
  • 文档:README、打包说明、维护说明、发布清单更新为多平台

验证

  • 本机 macOS:npm run check 通过;完整测试集连跑 5 遍(105 次)全部通过;原随机失败用例并行 30 次全部通过(修复前 20 次仅过 3 次)
  • 本机 macOS:tauri build 产出 .app / .dmg,应用可正常启动
  • 本 PR 的 CI:Windows / macOS / Linux 构建
  • 人工验证 macOS 第二屏输出(需外接显示器)

注意

  • 若在线版 beetya.ng 的部署依赖 windows-tauri/web/ 路径,需同步改为 tauri/web/
  • 版本号未改动,发版时建议升到 6.6.0 并补充更新日志

🤖 Generated with Claude Code

BeetMan and others added 2 commits October 30, 2026 08:58
- Rename windows-tauri/ to tauri/; Electron stays as the Windows-only fallback
- Output window uses simple fullscreen (no separate Space on macOS) and
  logical monitor coordinates on macOS for mixed-DPI setups
- Bundle for all platforms: macOS/Linux icons, ad-hoc macOS signing
- Replace PowerShell maintenance scripts with cross-platform scripts/project.mjs;
  version check now covers Cargo.lock (was stuck at 6.4.4)
- Release workflow builds Tauri for Windows, macOS (universal) and Linux
  (deb, AppImage) in parallel, plus Electron for Windows
- Fix deferred scroll restores overwriting newer positions (output window
  could snap back to top after receiving cached state; import could jump back)
- Update docs for multi-platform

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BeetMan
BeetMan merged commit 75801c0 into main Oct 30, 2026
6 checks passed
@BeetMan
BeetMan deleted the feat/cross-platform-tauri branch October 30, 2026 16:42
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