openclaw/apps/macos/Package.swift

71 lines
2.6 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 + CLI + IPC library).
import PackageDescription
let package = Package(
name: "Clawdis",
platforms: [
.macOS(.v15),
],
products: [
.library(name: "ClawdisIPC", targets: ["ClawdisIPC"]),
.executable(name: "Clawdis", targets: ["Clawdis"]),
.executable(name: "ClawdisCLI", targets: ["ClawdisCLI"]),
],
dependencies: [
.package(url: "https://github.com/ChimeHQ/AsyncXPCConnection", from: "1.3.0"),
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/sparkle-project/Sparkle", from: "2.8.1"),
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",
2025-12-05 23:13:53 +01:00
.product(name: "AsyncXPCConnection", package: "AsyncXPCConnection"),
2025-12-06 01:07:15 +01:00
.product(name: "MenuBarExtraAccess", package: "MenuBarExtraAccess"),
.product(name: "Subprocess", package: "swift-subprocess"),
.product(name: "Sparkle", package: "Sparkle"),
2025-12-05 23:13:53 +01:00
],
resources: [
.copy("Resources/Clawdis.icns"),
2025-12-06 05:01:28 +01:00
.copy("Resources/WebChat"),
],
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
.executableTarget(
name: "ClawdisCLI",
dependencies: [
"ClawdisIPC",
"ClawdisProtocol",
2025-12-05 23:13:53 +01:00
.product(name: "AsyncXPCConnection", package: "AsyncXPCConnection"),
],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
2025-12-07 01:55:30 +01:00
]),
2025-12-05 23:13:53 +01:00
.testTarget(
name: "ClawdisIPCTests",
dependencies: ["ClawdisIPC", "Clawdis", "ClawdisProtocol"],
2025-12-05 23:13:53 +01:00
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
.enableExperimentalFeature("SwiftTesting"),
2025-12-07 01:55:30 +01:00
]),
])