mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-03-25 09:25:47 +00:00
Based on API usage analysis, Peekaboo only requires macOS 14.0 (Sonoma), not macOS 15.0 (Sequoia). The APIs we use: - SCScreenshotManager.captureImage: macOS 14.0+ - configuration.shouldBeOpaque: macOS 14.0+ - Typed throws syntax: Works with macOS 14.0 This change makes Peekaboo available to more users who haven't upgraded to Sequoia yet. Also fixed warning about undefined modelName in AI providers by using nullish coalescing. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
37 lines
967 B
Swift
37 lines
967 B
Swift
// swift-tools-version: 6.0
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "peekaboo",
|
|
platforms: [
|
|
.macOS(.v14)
|
|
],
|
|
products: [
|
|
.executable(
|
|
name: "peekaboo",
|
|
targets: ["peekaboo"]
|
|
)
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0")
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "peekaboo",
|
|
dependencies: [
|
|
.product(name: "ArgumentParser", package: "swift-argument-parser")
|
|
],
|
|
swiftSettings: [
|
|
.enableExperimentalFeature("StrictConcurrency"),
|
|
.unsafeFlags(["-parse-as-library"])
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "peekabooTests",
|
|
dependencies: ["peekaboo"],
|
|
swiftSettings: [
|
|
.enableExperimentalFeature("StrictConcurrency")
|
|
]
|
|
)
|
|
]
|
|
)
|