mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 22:16:41 +00:00
Pure-Foundation CCSBarCore: thin CCS web-server client (summary force-fresh, pause/resume/default/solo/tier-lock), bar.json discovery with an offline state, summary models, status-title formatting, and a force-refresh debouncer. Tested via a runnable assert harness (ccs-bar-check) so it builds without full Xcode.
24 lines
848 B
Swift
24 lines
848 B
Swift
// swift-tools-version:5.9
|
|
import PackageDescription
|
|
|
|
// CCS Bar - native macOS menu bar client for CCS.
|
|
//
|
|
// Build/test note: full Xcode (and therefore XCTest) is not required. The
|
|
// testable logic lives in the pure-Foundation `CCSBarCore` target and is
|
|
// exercised by the `ccs-bar-check` executable (an assert harness) so it runs
|
|
// on a CommandLineTools-only toolchain. The SwiftUI app target is added once
|
|
// the core is verified.
|
|
let package = Package(
|
|
name: "CCSBar",
|
|
platforms: [.macOS(.v13)],
|
|
products: [
|
|
.executable(name: "CCSBar", targets: ["CCSBarApp"]),
|
|
.executable(name: "ccs-bar-check", targets: ["CCSBarCheck"]),
|
|
],
|
|
targets: [
|
|
.target(name: "CCSBarCore"),
|
|
.executableTarget(name: "CCSBarApp", dependencies: ["CCSBarCore"]),
|
|
.executableTarget(name: "CCSBarCheck", dependencies: ["CCSBarCore"]),
|
|
]
|
|
)
|