- 新增 isPopover 环境值,PopoverRootView 打开;Card 在弹窗里不画灰底,只在顶部画一条细分隔线,上下 8pt、行距 6pt;PageScroll 在弹窗里区块间不再留间距 - 弹窗顶栏的两个按钮改用 24pt 的 MiniIconButton - 网络弹窗:IP 纯净度、DNS 默认收起成一行(CollapsedSection,显示分数等级 / 正在使用的 DNS),点开后标题栏右侧有收起按钮;展开状态存在 AppSettings.expandedPopoverSections,变化时刷新弹窗高度 - 流量图高度 72pt → 56pt,连接探测改为 30 列 2 行 - 网络弹窗 1519pt → 952pt,其余弹窗矮 9%~21%;主窗口详情页不变
122 lines
3.5 KiB
YAML
122 lines
3.5 KiB
YAML
name: OpenStats
|
||
|
||
options:
|
||
bundleIdPrefix: com.openstats
|
||
deploymentTarget:
|
||
macOS: "14.0"
|
||
developmentLanguage: zh-Hans
|
||
createIntermediateGroups: true
|
||
groupSortPosition: top
|
||
|
||
settings:
|
||
base:
|
||
SWIFT_VERSION: "6.0"
|
||
MARKETING_VERSION: "0.3.2"
|
||
# 构建号四位数字,每次 make build 加一;营销版本只在发布时用 Scripts/version.sh patch / minor 修改
|
||
CURRENT_PROJECT_VERSION: "0070"
|
||
MACOSX_DEPLOYMENT_TARGET: "14.0"
|
||
# 本地开发使用 ad-hoc 签名;发布时改为 Developer ID(见 docs/PLAN.md)
|
||
CODE_SIGN_STYLE: Manual
|
||
CODE_SIGN_IDENTITY: "-"
|
||
DEVELOPMENT_TEAM: ""
|
||
ENABLE_HARDENED_RUNTIME: YES
|
||
DEAD_CODE_STRIPPING: YES
|
||
ENABLE_USER_SCRIPT_SANDBOXING: YES
|
||
|
||
packages:
|
||
OpenStatsKit:
|
||
path: Packages/OpenStatsKit
|
||
|
||
targets:
|
||
OpenStats:
|
||
type: application
|
||
platform: macOS
|
||
sources:
|
||
- path: App
|
||
- path: Helper/com.openstats.helper.plist
|
||
buildPhase:
|
||
copyFiles:
|
||
destination: wrapper
|
||
subpath: Contents/Library/LaunchDaemons
|
||
info:
|
||
path: App/Info.plist
|
||
properties:
|
||
CFBundleName: OpenStats
|
||
CFBundleDisplayName: OpenStats
|
||
CFBundleShortVersionString: $(MARKETING_VERSION)
|
||
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
|
||
CFBundleDevelopmentRegion: zh-Hans
|
||
LSMinimumSystemVersion: $(MACOSX_DEPLOYMENT_TARGET)
|
||
LSUIElement: true
|
||
LSApplicationCategoryType: public.app-category.utilities
|
||
NSHumanReadableCopyright: © 2026 OpenStats
|
||
# 账号登录完成后浏览器跳回 openstats://auth/callback
|
||
CFBundleURLTypes:
|
||
- CFBundleURLName: com.openstats.app.auth
|
||
CFBundleURLSchemes: [openstats]
|
||
CFBundleTypeRole: Viewer
|
||
settings:
|
||
base:
|
||
PRODUCT_NAME: OpenStats
|
||
PRODUCT_BUNDLE_IDENTIFIER: com.openstats.app
|
||
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
|
||
dependencies:
|
||
- package: OpenStatsKit
|
||
product: OpenStatsUI
|
||
- target: OpenStatsHelper
|
||
embed: true
|
||
copy:
|
||
destination: executables
|
||
- target: OpenStatsWidget
|
||
embed: true
|
||
|
||
# 桌面小组件(沙盒扩展),嵌入 OpenStats.app/Contents/PlugIns
|
||
OpenStatsWidget:
|
||
type: app-extension
|
||
platform: macOS
|
||
sources:
|
||
- path: Widget
|
||
excludes:
|
||
- "*.entitlements"
|
||
info:
|
||
path: Widget/Info.plist
|
||
properties:
|
||
CFBundleDisplayName: OpenStats
|
||
CFBundleShortVersionString: $(MARKETING_VERSION)
|
||
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
|
||
LSMinimumSystemVersion: $(MACOSX_DEPLOYMENT_TARGET)
|
||
NSExtension:
|
||
NSExtensionPointIdentifier: com.apple.widgetkit-extension
|
||
entitlements:
|
||
path: Widget/OpenStatsWidget.entitlements
|
||
properties:
|
||
com.apple.security.app-sandbox: true
|
||
settings:
|
||
base:
|
||
PRODUCT_NAME: OpenStatsWidget
|
||
PRODUCT_BUNDLE_IDENTIFIER: com.openstats.app.widget
|
||
SKIP_INSTALL: YES
|
||
dependencies:
|
||
- package: OpenStatsKit
|
||
product: Metrics
|
||
|
||
OpenStatsHelper:
|
||
type: tool
|
||
platform: macOS
|
||
sources:
|
||
- path: Helper
|
||
excludes:
|
||
- "*.plist"
|
||
settings:
|
||
base:
|
||
PRODUCT_NAME: OpenStatsHelper
|
||
PRODUCT_BUNDLE_IDENTIFIER: com.openstats.helper
|
||
GENERATE_INFOPLIST_FILE: YES
|
||
CREATE_INFOPLIST_SECTION_IN_BINARY: YES
|
||
SKIP_INSTALL: YES
|
||
dependencies:
|
||
- package: OpenStatsKit
|
||
product: SMC
|
||
- package: OpenStatsKit
|
||
product: HelperShared
|