perf(menubar): 隔离卡片动效并推进 1.1 低开销版本
This commit is contained in:
+4
-2
@@ -31,6 +31,8 @@ CHECKS.update({
|
||||
"PublicIPAddressChecks": ["kymo/Core/Services/PublicIPAddressService.swift"],
|
||||
"NativeMetricDrawingChecks": ["kymo/UI/Charts/NativePanelCurve.swift", "kymo/UI/Charts/PanelCurveFrame.swift",
|
||||
"kymo/UI/Charts/PanelCurveGeometry.swift", "kymo/UI/Components/NativeMetricRing.swift", "kymo/UI/Components/MetricMotion.swift"],
|
||||
"NativeContentHostChecks": ["kymo/UI/Components/NativeContentHost.swift", "kymo/UI/Components/AnimatedMetricText.swift",
|
||||
"kymo/UI/Components/MetricMotion.swift"],
|
||||
"ProcessCPULiveChecks": ["kymo/Core/Models/ProcessMetrics.swift", "kymo/Core/Monitors/ProcessMonitor.swift"],
|
||||
"MotionPreferencesChecks": ["kymo/Core/Services/AppearancePreferences.swift", "kymo/Core/Services/SamplingPreferences.swift"],
|
||||
"NetworkAddressChecks": ["kymo/Core/Monitors/NetworkMonitor.swift"],
|
||||
@@ -58,7 +60,7 @@ CHECKS.update({
|
||||
"kymo/UI/Components/IntervalControl.swift"],
|
||||
"SandboxNetworkChecks": ["kymo/Core/Services/PublicIPAddressService.swift"],
|
||||
})
|
||||
GUI = {"NativeMetricDrawingChecks", "NativeProcessTableChecks", "LanguageScopeChecks", "SettingsWindowChecks", "PanelWindowChecks"}
|
||||
GUI = {"NativeMetricDrawingChecks", "NativeContentHostChecks", "NativeProcessTableChecks", "LanguageScopeChecks", "SettingsWindowChecks", "PanelWindowChecks"}
|
||||
NETWORK = {"SandboxNetworkChecks"}
|
||||
SERVICES = {"ReleaseServiceChecks"}
|
||||
|
||||
@@ -92,7 +94,7 @@ def test_bundle(work, name, executable, host_entitlements=None, resources=None,
|
||||
(contents / "Info.plist").write_bytes(plistlib.dumps({
|
||||
"CFBundleIdentifier": "cn.airnan.kymo.checks." + uuid.uuid4().hex,
|
||||
"CFBundleExecutable": name, "CFBundlePackageType": "APPL",
|
||||
"LSUIElement": name in {"PanelWindowChecks", "NativeMetricDrawingChecks", "NativeProcessTableChecks", "NetworkAddressChecks", "SandboxNetworkChecks"},
|
||||
"LSUIElement": name in {"PanelWindowChecks", "NativeMetricDrawingChecks", "NativeContentHostChecks", "NativeProcessTableChecks", "NetworkAddressChecks", "SandboxNetworkChecks"},
|
||||
}))
|
||||
if resources:
|
||||
shutil.copytree(resources, contents / "Resources")
|
||||
|
||||
Reference in New Issue
Block a user