Skip to content

chore(github): 迁移发布链接到 pastera-app#1

Merged
AllenAlanEllenBarm merged 3 commits into
developfrom
codex/pastera-org-split
Jun 20, 2026
Merged

chore(github): 迁移发布链接到 pastera-app#1
AllenAlanEllenBarm merged 3 commits into
developfrom
codex/pastera-org-split

Conversation

@AllenAlanEllenBarm

Copy link
Copy Markdown
Collaborator

目的

把 Pastera 的发布入口、Sparkle 更新源和 GitHub Releases API 迁移到新建的 pastera-app/Pastera,配合后续 Windows 客户端与同步协议仓库拆分。

改动

  • 更新 README 下载链接、appcast release 链接与 SUFeedURL。
  • 更新手动检查更新使用的 GitHub Releases API owner。
  • 更新 appcast 生成脚本和相关测试断言。

验证

  • git diff --check
  • xcodebuild CODE_SIGN_IDENTITY=- CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO -scheme pastera -project pastera.xcodeproj -clonedSourcePackagesDirPath "$PWD/.spm-cache/SourcePackages" -packageCachePath "$PWD/.spm-cache/PackageCache" -skipPackagePluginValidation -skipMacroValidation -only-testing:pasteraTests/SparkleUpdateFeedTests -only-testing:pasteraTests/PasteraGitHubReleaseUpdateCheckerTests test

风险/未完成项

  • 未运行完整 clean test;本次只覆盖发布链接和更新检查相关测试。
  • 现有 SwiftLint 文件长度/类型长度 warning 仍存在,本次未处理。

jiangyehui added 3 commits June 20, 2026 11:26
业务目的:
- 将 Pastera 的发布、更新检查和仓库入口迁移到新建 GitHub 组织 pastera-app,给后续 Windows 仓库和同步协议仓库留出清晰边界。

实现内容:
- 更新 README 下载入口、Sparkle appcast、SUFeedURL 和 GitHub Releases API owner。
- 更新 appcast 发布脚本生成的 GitHub release URL。
- 调整相关更新源和 release URL 测试断言。

验证:
- git diff --check
- xcodebuild CODE_SIGN_IDENTITY=- CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO -scheme pastera -project pastera.xcodeproj -clonedSourcePackagesDirPath "$PWD/.spm-cache/SourcePackages" -packageCachePath "$PWD/.spm-cache/PackageCache" -skipPackagePluginValidation -skipMacroValidation -only-testing:pasteraTests/SparkleUpdateFeedTests -only-testing:pasteraTests/PasteraGitHubReleaseUpdateCheckerTests test

风险/未完成项:
- 未运行完整 clean test;本次只覆盖发布链接和更新检查相关测试。
- 现有 SwiftLint 文件长度/类型长度 warning 仍存在,本次未处理。
业务目的:
- 解决 PR 在 GitHub Actions macOS runner 上稳定失败的 AppKit 布局像素断言,保持仓库迁移 PR 可合并。

实现内容:
- 将菜单面板顶部位置断言改为兼容 AppKit 按屏幕可见区域 clamp 后的位置。
- 对偏好设置页和同步页的测试断言加入最小像素容差,保留原有相对位置、数量和边界约束。

验证:
- git diff --check
- xcodebuild CODE_SIGN_IDENTITY=- CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO -scheme pastera -project pastera.xcodeproj -clonedSourcePackagesDirPath /Users/feeyo/workspace/github.com/AllenAlanEllenBarm/pastera/.spm-cache/SourcePackages -packageCachePath /Users/feeyo/workspace/github.com/AllenAlanEllenBarm/pastera/.spm-cache/PackageCache -skipPackagePluginValidation -skipMacroValidation -only-testing:pasteraTests/SyncPreferenceTopSectionTests -only-testing:pasteraTests/PreferencePaneAlignmentTests -only-testing:pasteraTests/KeyboardAccessibilityTests -only-testing:pasteraTests/HistoryMenuKeyEquivalentTests test
- xcodebuild CODE_SIGN_IDENTITY=- CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO -scheme pastera -project pastera.xcodeproj -clonedSourcePackagesDirPath /Users/feeyo/workspace/github.com/AllenAlanEllenBarm/pastera/.spm-cache/SourcePackages -packageCachePath /Users/feeyo/workspace/github.com/AllenAlanEllenBarm/pastera/.spm-cache/PackageCache -skipPackagePluginValidation -skipMacroValidation clean test

风险/未完成项:
- GitHub Actions 需要推送后重新跑;本地验证通过但 runner 状态以 PR checks 为准。
业务目的:
- 补齐 GitHub Actions 上暴露的第二处菜单面板顶部位置断言,避免 AppKit 在 runner 可见屏幕边界处 clamp 后误报失败。

实现内容:
- 将 pinnedMainMenuPanelKeepsOriginalMenuTopLeftPosition 的 maxY 断言改为和同文件锚点测试一致的 visibleFrame-aware 检查。
- 将前一处临时变量折回单行表达式,保持 HistoryMenuKeyEquivalentTests 不触发 SwiftLint type_body_length error。

验证:
- git diff --check
- xcodebuild CODE_SIGN_IDENTITY=- CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO -scheme pastera -project pastera.xcodeproj -clonedSourcePackagesDirPath /Users/feeyo/workspace/github.com/AllenAlanEllenBarm/pastera/.spm-cache/SourcePackages -packageCachePath /Users/feeyo/workspace/github.com/AllenAlanEllenBarm/pastera/.spm-cache/PackageCache -skipPackagePluginValidation -skipMacroValidation -only-testing:pasteraTests/HistoryMenuKeyEquivalentTests test

风险/未完成项:
- 需要新提交后的 GitHub Actions 重新确认。
@AllenAlanEllenBarm
AllenAlanEllenBarm merged commit 6dbeef9 into develop Jun 20, 2026
6 of 7 checks passed
@AllenAlanEllenBarm
AllenAlanEllenBarm deleted the codex/pastera-org-split branch June 20, 2026 05:55
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