Repository navigation
fix: 补缺失的 tsconfig.base.json,并新增 macOS 发布脚本 release:mac - #2
Open
ThySummer14 wants to merge 1 commit into
Open
ThySummer14 wants to merge 1 commit into
ThySummer14 wants to merge 1 commit into
Conversation
- 新增根 tsconfig.base.json(7 个子项目均 extends 它,缺失导致全平台构建失败 TS5083) - 新增 scripts/public/build-release-mac.mjs 与 npm run release:mac:参照 release:win, 跑 build:core → editor/reader 的 tauri build → 按版本号把 .dmg 汇总到 output/ - README 补充 macOS 产物路径、发布命令与未签名公证说明 修复 firzencode#1 Made-with: Proma
This was referenced Aug 12, 2026
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.
背景
master 当前在任何平台都无法构建:仓库根缺少
tsconfig.base.json,而全部 7 个子项目(engine / player / error-report / viewer / shelf / editor / reader)的tsconfig.json都 extends 它。详见 #1。变更
tsconfig.base.json:target: ES2022 / module: ESNext / moduleResolution: bundler / strict / skipLibCheck / isolatedModules。这是各子项目 tsconfig 已隐含要求的现代 Vite + React + TS 基础配置,同时满足 engine 的verbatimModuleSyntax需求。scripts/public/build-release-mac.mjs+ 根package.json的release:mac命令。参照release:win的结构:build:core→ editor/reader 各自tauri build→ 按版本号把.dmg汇总到output/(.app已含在 dmg 内)。.app+.dmg)、release:mac/release:win命令,以及 macOS 产物默认未签名公证的说明。验证
macOS 26.6(arm64),Node 22 / Rust 1.95:
npm run install:all && npm run build:core✓(engine → player → error-report 全部产出 dist)npm run tauri:build✓ →editor/.../bundle/macos/kiny-editor.app+dmg/kiny-editor_0.12.0_aarch64.dmgnpm run tauri:build:reader✓ →reader/.../bundle/macos/kiny-reader.app+dmg/kiny-reader_0.12.0_aarch64.dmgapp started · … · macos)未在 Windows / Linux 上回归验证;tsconfig 基础配置采用的是各子项目已经依赖的现代组合,预期不影响其他平台,合并前建议在 Windows 上跑一次
build:core确认。备注
install:all+build:core)防止此类全平台构建回归;如有需要我可以另开 PR。release:mac产出的 dmg 未签名公证,正式对外分发需要 Apple Developer 证书,这属于仓库之外的配置,未包含在本 PR。Made with Proma · GitHub