Fix incomplete rename that broke macOS app builds: - Update Package.swift to use ClawdbotKit package identifier (SPM uses path name) - Fix argument order in ClawdbotKit Package.swift (dependencies before path) - Add path properties to macos Package.swift targets pointing to Clawdbot* directories - Update notification name references (.clawdbotSelectSettingsTab → .moltbotSelectSettingsTab) - Update CommandResolver method calls (clawdbotCommand → moltbotCommand, etc.) - Update self.clawdbotOAuthDirEnv → self.moltbotOAuthDirEnv - Fix resource paths in package-mac-app.sh (Sources/Moltbot → Sources/Clawdbot) - Fix icon filename reference (Moltbot.icns → Clawdbot.icns) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
96 lines
3.8 KiB
Swift
96 lines
3.8 KiB
Swift
// swift-tools-version: 6.2
|
|
// Package manifest for the Moltbot macOS companion (menu bar app + IPC library).
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "Moltbot",
|
|
platforms: [
|
|
.macOS(.v15),
|
|
],
|
|
products: [
|
|
.library(name: "MoltbotIPC", targets: ["MoltbotIPC"]),
|
|
.library(name: "MoltbotDiscovery", targets: ["MoltbotDiscovery"]),
|
|
.executable(name: "Moltbot", targets: ["Moltbot"]),
|
|
.executable(name: "moltbot-mac", targets: ["MoltbotMacCLI"]),
|
|
],
|
|
dependencies: [
|
|
.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(url: "https://github.com/steipete/Peekaboo.git", branch: "main"),
|
|
.package(path: "../shared/ClawdbotKit"),
|
|
.package(path: "../../Swabble"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "MoltbotIPC",
|
|
dependencies: [],
|
|
path: "Sources/ClawdbotIPC",
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.target(
|
|
name: "MoltbotDiscovery",
|
|
dependencies: [
|
|
.product(name: "MoltbotKit", package: "ClawdbotKit"),
|
|
],
|
|
path: "Sources/ClawdbotDiscovery",
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.executableTarget(
|
|
name: "Moltbot",
|
|
dependencies: [
|
|
"MoltbotIPC",
|
|
"MoltbotDiscovery",
|
|
.product(name: "MoltbotKit", package: "ClawdbotKit"),
|
|
.product(name: "MoltbotChatUI", package: "ClawdbotKit"),
|
|
.product(name: "MoltbotProtocol", package: "ClawdbotKit"),
|
|
.product(name: "SwabbleKit", package: "swabble"),
|
|
.product(name: "MenuBarExtraAccess", package: "MenuBarExtraAccess"),
|
|
.product(name: "Subprocess", package: "swift-subprocess"),
|
|
.product(name: "Logging", package: "swift-log"),
|
|
.product(name: "Sparkle", package: "Sparkle"),
|
|
.product(name: "PeekabooBridge", package: "Peekaboo"),
|
|
.product(name: "PeekabooAutomationKit", package: "Peekaboo"),
|
|
],
|
|
path: "Sources/Clawdbot",
|
|
exclude: [
|
|
"Resources/Info.plist",
|
|
],
|
|
resources: [
|
|
.copy("Resources/Clawdbot.icns"),
|
|
.copy("Resources/DeviceModels"),
|
|
],
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.executableTarget(
|
|
name: "MoltbotMacCLI",
|
|
dependencies: [
|
|
"MoltbotDiscovery",
|
|
.product(name: "MoltbotKit", package: "ClawdbotKit"),
|
|
.product(name: "MoltbotProtocol", package: "ClawdbotKit"),
|
|
],
|
|
path: "Sources/ClawdbotMacCLI",
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.testTarget(
|
|
name: "MoltbotIPCTests",
|
|
dependencies: [
|
|
"MoltbotIPC",
|
|
"Moltbot",
|
|
"MoltbotDiscovery",
|
|
.product(name: "MoltbotProtocol", package: "ClawdbotKit"),
|
|
.product(name: "SwabbleKit", package: "swabble"),
|
|
],
|
|
path: "Tests/ClawdbotIPCTests",
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
.enableExperimentalFeature("SwiftTesting"),
|
|
]),
|
|
])
|