重构为 Electron + FastAPI 双端架构,加入 macOS/Windows 自动打包 - #1
Merged
Conversation
Owner
|
I could not push directly to the source fork branch (ZionHeZY/VideoMatrix:dev) because this account does not have write access to that fork. I applied the requested taste-skill polish on top of this PR and opened a replacement PR here: #2. |
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.
改动概要
app/{api,core,models,services}分层backend/videomatrix-backend.spec—— PyInstaller 把后端 + uvicorn + ffmpeg 二进制打成单可执行文件frontend/src/main/main.ts生产环境直接 spawn 二进制,无需用户装 Pythonelectron-builder把后端 binary 通过extraResources打进 Setup.exe / .dmg.github/workflows/build-windows.yml重写为新架构云端打包流程(NSIS).github/workflows/build-mac.yml新增 macOS dmg 自动打包用户体验
push tag
v*触发,Mac runner 产 dmg、Windows runner 产 Setup.exe,自动上传 release。终端用户下载双击安装即可,零依赖。测试
npm run build全栈通过(main / preload / renderer)npm run dev本地启动 Electron + 后端能跑通useEffect依赖闭包导致计时器反复重启的 bug)