Files
OpenStats/project.yml
T
gentpan 51b954983b 菜单栏新增“电池”项目:电量、24 小时曲线、功耗、健康度与蓝牙设备电量
- 电池按九种风格画在菜单栏,充电中带闪电,电量低于 20% 按“高负载时着色”变红;点击弹出电池详情,主窗口同名页面复用同一视图,历史页多了电池电量曲线
- 历史库加 battery 列(旧库首次打开时 ALTER TABLE 迁移),HistoryRecorder 单独查最近 24 小时电量供弹窗使用
- BluetoothController 按需轮询蓝牙设备电量:弹窗 / 页面开着每分钟,菜单栏需要时每 5 分钟;本机信息页的蓝牙卡片改用它
- 没有电池的 Mac 上电池项目改为显示电量最低的蓝牙设备;「设置 · 菜单栏」新增“蓝牙设备电量低时提示”开关(同步文档一并带上)
- README、架构说明、更新日志与译文同步
2026-09-15 03:58:30 +05:00

122 lines
3.5 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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.2.0"
# 构建号四位数字,每次 make build 加一;营销版本只在发布时用 Scripts/version.sh patch / minor 修改
CURRENT_PROJECT_VERSION: "0048"
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