Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ PDF 读取文字层;DOCX 读取主文档与表格文字,遗漏脚注、批

Capture 的精确 manifest 随签名应用交付,格式为 `swift_bundled`。当前不实现动态插件下载/热加载,其他版本需更新应用。扩展版本与应用版本分开,不声称已有 Registry 原生 Swift 下载通道。目录扩展每次启动或首次使用连接时初始化类型定义,30 秒刷新只检查参与与来源;Host 对已使用的连接统一续租。手动目录扫描逐文件检查本地取消与截止时间,远端取消以 5 秒为间隔在文件处理边界检查,并在结束前再次确认。

菜单栏 template 图标和明暗面板标识通过 InKCre UI 的 SwiftPM product `InKCreLogoAssets` 取得,当前依赖正式版本 `2.6.0`,使用 exact 约束并由 `Package.resolved` 锁定提交。SwiftPM 解析资源,打包脚本将资源 bundle 嵌入最终 `.app`,普通构建无需解压 ZIP、安装 Web 依赖或运行渲染器。应用 ICNS 继续由本仓库维护,在原标志外使用 Mac 专用圆角底板和透明边距,避免通用白底画布满版导致 Dock 尺寸过大。依赖与资源路径、原始出处、小尺寸/高 DPI 几何与图标再生步骤见 [Mac 标识资源](extensions/capture/Sources/CaptureMac/Resources/Brand/README.md)。
菜单栏 template 图标和明暗面板标识通过 InKCre UI 的 SwiftPM product `InKCreLogoAssets` 取得,当前依赖正式版本 `2.6.0`,使用 exact 约束并由 `Package.resolved` 锁定提交。SwiftPM 解析资源,打包脚本将资源 bundle 嵌入最终 `.app`,普通构建无需解压 ZIP、安装 Web 依赖或运行渲染器。应用 ICNS 继续由本仓库维护,在原标志外使用 Mac 专用圆角底板和透明边距,避免通用白底画布满版导致 Dock 尺寸过大。依赖与资源路径、原始出处、小尺寸/高 DPI 几何与图标再生步骤见 [Mac 标识资源](assets/app-icon/README.md)。

发布构建显式设置稳定 `BUNDLE_ID` 与 `SIGNING_IDENTITY`;可用 `NOTARY_PROFILE` 指定已配置的 notarytool Keychain profile。脚本不会寻找或创建发布凭据。发布后保持 bundle ID 与签名团队不变,以保留系统权限、Keychain 和待办身份。

Expand Down
2 changes: 1 addition & 1 deletion THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ BetterShot 由 Kartik Labhshetwar 及贡献者开发。CaptureMac/Vendor/BetterS

PostgresNIO 及传递依赖使用各自许可。Package.resolved 固定来源与修订;scripts/collect-licenses.py 从实际解析的源码收集完整 LICENSE/NOTICE,包括 BoringSSL 的内嵌许可。缺失许可会使打包失败。生成结果随应用保存在 Contents/Resources/THIRD_PARTY_NOTICES.txt,可从应用菜单打开。

InKCre UI 的 `InKCreLogoAssets` 用于本项目品牌;代码 MIT 许可不授予 InKCre 商标或品牌资源的使用权。打包从锁定的 UI checkout 收集 `assets/logo/README.zh-CN.md` 与 `PROVENANCE.json`,保留资源来源和使用边界;任一文件缺失仍使打包失败。其他依赖继续要求完整许可。应用图标的历史来源另保留于本机品牌目录。
InKCre UI 的 `InKCreLogoAssets` 用于本项目品牌;代码 MIT 许可不授予 InKCre 商标或品牌资源的使用权。打包从锁定的 UI checkout 收集 `assets/logo/README.zh-CN.md` 与 `PROVENANCE.json`,保留资源来源和使用边界;任一文件缺失仍使打包失败。其他依赖继续要求完整许可。应用图标来自 InKCre Web 和 UI 的标志几何,固定修订与修改说明见源码中的 [图标来源](assets/app-icon/PROVENANCE.json)。

[SwiftSoup 2.14.3](https://github.com/scinfu/SwiftSoup/tree/2.14.3)(e7f85f4d3dd91ca9a1e94d3328aa1ed5120a8c0f)用于本地 HTML 结构解析与安全清理,使用 MIT。构建收集上游完整 LICENSE,保留原 jsoup 作者与 Swift port 作者署名。

Expand Down
3 changes: 1 addition & 2 deletions Tests/CaptureMacTests/AppIconTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ struct AppIconTests {
@Test func iconsetHasTransparentMacMarginsAtEveryScale() throws {
let root = URL(fileURLWithPath: #filePath).deletingLastPathComponent()
.deletingLastPathComponent().deletingLastPathComponent()
let folder = root.appendingPathComponent(
"extensions/capture/Sources/CaptureMac/Resources/Brand/AppIcon.iconset")
let folder = root.appendingPathComponent("assets/app-icon/AppIcon.iconset")
for (name, pixels, fraction) in [
("16x16", 16, 0.875), ("16x16@2x", 32, 0.875),
("32x32", 32, 0.875), ("32x32@2x", 64, 0.875),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

更新 UI 依赖时阅读该版本的 Logo 说明,按逻辑尺寸选择几何与像素倍率,并更新解析锁定;24 pt @2x 的文件是 48 × 48 物理像素,不能改选常规 48 px 的标准几何。资源嵌入验收应将 `.app` 移出构建目录,确认实际界面仍能显示标识。

应用图标继续由本仓库维护。当前几何来自原 `InKCre-logo-pack-20261021`,原始来源与固定版本见同目录 `PROVENANCE.json`;该历史来源记录不承担运行时 SwiftPM 依赖的版本锁定。
本目录维护应用图标的构建素材。打包脚本从预生成的 iconset 生成应用使用的 `AppIcon.icns`。当前几何来自原 `InKCre-logo-pack-20261021`,原始来源与固定版本见同目录 `PROVENANCE.json`;该历史来源记录不承担运行时 SwiftPM 依赖的版本锁定。

`AppIcon.svg` 与 `AppIconSmall.svg` 保留资产包的标准 256 和小尺寸 32 几何与配色,在白色圆角底板外围加入透明留白。沿用 `nearby-audio` 已修复的 legacy ICNS 光学尺度:常规底板占 824/1024,小尺寸占 28/32;圆角半径为底板宽度的 18.75%。不能把通用满版白底 PNG 直接打包成 Mac 图标,ICNS 不会自动补这层留白。

Expand Down
2 changes: 1 addition & 1 deletion extensions/capture/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ let package = Package(
"Capture", .product(name: "PeerCore", package: "PeerCore"),
.product(name: "PeerMacUI", package: "PeerCore"),
.product(name: "InKCreLogoAssets", package: "ui"),
], resources: [.copy("Resources/Brand")]),
]),
]
)
3 changes: 1 addition & 2 deletions scripts/build-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ mkdir -p "$app/Contents/MacOS"
mkdir -p "$app/Contents/Resources"
cp "$bin_path/InKCre" "$app/Contents/MacOS/InKCre"
cp -R "$bin_path/InKCreCapture_Capture.bundle" "$app/Contents/Resources/"
cp -R "$bin_path/InKCreCapture_CaptureMac.bundle" "$app/Contents/Resources/"
cp -R "$bin_path/InKCreUI_InKCreLogoAssets.bundle" "$app/Contents/Resources/"
cp -R "$bin_path/InKCreLocalFiles_LocalFiles.bundle" "$app/Contents/Resources/"
for resource in "$bin_path"/swift-*.bundle; do
Expand All @@ -36,7 +35,7 @@ for resource in "$bin_path"/swift-*.bundle; do
done
python3 scripts/collect-licenses.py "$app/Contents/Resources/THIRD_PARTY_NOTICES.txt"
cp LICENSE "$app/Contents/Resources/LICENSE"
iconutil -c icns extensions/capture/Sources/CaptureMac/Resources/Brand/AppIcon.iconset -o "$app/Contents/Resources/AppIcon.icns"
iconutil -c icns assets/app-icon/AppIcon.iconset -o "$app/Contents/Resources/AppIcon.icns"
cat > "$app/Contents/Info.plist" <<PLIST
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-macos-icon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -euo pipefail
cd "$(dirname "$0")/.."
command -v rsvg-convert >/dev/null || { echo 'Regenerating icons requires librsvg (rsvg-convert).' >&2; exit 1; }
brand=extensions/capture/Sources/CaptureMac/Resources/Brand
brand=assets/app-icon
for entry in '16x16:16:small' '16x16@2x:32:small' '32x32:32:small' '32x32@2x:64:small' \
'128x128:128:regular' '128x128@2x:256:regular' '256x256:256:regular' \
'256x256@2x:512:regular' '512x512:512:regular' '512x512@2x:1024:regular'; do
Expand Down
Loading