Files
openclaw/apps/macos/Package.swift

77 lines
2.9 KiB
Swift
Raw Normal View History

2025-12-05 23:13:53 +01:00
// swift-tools-version: 6.2
// Package manifest for the Clawdis macOS companion (menu bar app + IPC library).
2025-12-05 23:13:53 +01:00
import PackageDescription
let package = Package(
name: "Clawdis",
platforms: [
.macOS(.v15),
],
products: [
.library(name: "ClawdisIPC", targets: ["ClawdisIPC"]),
.executable(name: "Clawdis", targets: ["Clawdis"]),
],
dependencies: [
2025-12-06 01:07:15 +01:00
.package(url: "https://github.com/orchetect/MenuBarExtraAccess", exact: "1.2.2"),
.package(url: "https://github.com/swiftlang/swift-subprocess.git", from: "0.1.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.8.0"),
.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.8.1"),
.package(path: "../shared/ClawdisKit"),
2025-12-23 01:30:40 +01:00
.package(path: "../../Swabble"),
2025-12-13 16:55:41 +00:00
.package(path: "../../Peekaboo/Core/PeekabooCore"),
.package(path: "../../Peekaboo/Core/PeekabooAutomationKit"),
2025-12-05 23:13:53 +01:00
],
targets: [
.target(
name: "ClawdisProtocol",
dependencies: [],
path: "Sources/ClawdisProtocol",
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
]),
2025-12-05 23:13:53 +01:00
.target(
name: "ClawdisIPC",
dependencies: [],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
2025-12-07 01:55:30 +01:00
]),
2025-12-05 23:13:53 +01:00
.executableTarget(
name: "Clawdis",
dependencies: [
"ClawdisIPC",
"ClawdisProtocol",
.product(name: "ClawdisKit", package: "ClawdisKit"),
.product(name: "ClawdisChatUI", package: "ClawdisKit"),
2025-12-23 01:30:40 +01:00
.product(name: "SwabbleKit", package: "swabble"),
2025-12-06 01:07:15 +01:00
.product(name: "MenuBarExtraAccess", package: "MenuBarExtraAccess"),
.product(name: "Subprocess", package: "swift-subprocess"),
.product(name: "Logging", package: "swift-log"),
.product(name: "Sparkle", package: "Sparkle"),
2025-12-13 16:55:41 +00:00
.product(name: "PeekabooBridge", package: "PeekabooCore"),
.product(name: "PeekabooAutomationKit", package: "PeekabooAutomationKit"),
2025-12-05 23:13:53 +01:00
],
exclude: [
"Resources/Info.plist",
],
resources: [
.copy("Resources/Clawdis.icns"),
.copy("Resources/DeviceModels"),
],
2025-12-05 23:13:53 +01:00
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
2025-12-07 01:55:30 +01:00
]),
2025-12-05 23:13:53 +01:00
.testTarget(
name: "ClawdisIPCTests",
2025-12-23 01:30:40 +01:00
dependencies: [
"ClawdisIPC",
"Clawdis",
"ClawdisProtocol",
.product(name: "SwabbleKit", package: "swabble"),
],
2025-12-05 23:13:53 +01:00
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
.enableExperimentalFeature("SwiftTesting"),
2025-12-07 01:55:30 +01:00
]),
])