|
| 1 | +// swift-tools-version: 6.2 |
| 2 | +//===----------------------------------------------------------------------===// |
| 3 | +// Copyright © 2026 Apple Inc. and the Containerization project authors. |
| 4 | +// |
| 5 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +// you may not use this file except in compliance with the License. |
| 7 | +// You may obtain a copy of the License at |
| 8 | +// |
| 9 | +// https://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +// |
| 11 | +// Unless required by applicable law or agreed to in writing, software |
| 12 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +// See the License for the specific language governing permissions and |
| 15 | +// limitations under the License. |
| 16 | +//===----------------------------------------------------------------------===// |
| 17 | + |
| 18 | +import PackageDescription |
| 19 | + |
| 20 | +let containerizationVersion = "0.26.5" |
| 21 | + |
| 22 | +let package = Package( |
| 23 | + name: "sandboxy", |
| 24 | + platforms: [ |
| 25 | + .macOS("26.0") |
| 26 | + ], |
| 27 | + products: [ |
| 28 | + .executable( |
| 29 | + name: "sandboxy", |
| 30 | + targets: ["sandboxy"] |
| 31 | + ) |
| 32 | + ], |
| 33 | + dependencies: [ |
| 34 | + .package(url: "https://github.com/apple/containerization.git", from: "0.30.0"), |
| 35 | + .package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.3.0"), |
| 36 | + .package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"), |
| 37 | + .package(url: "https://github.com/apple/swift-nio.git", from: "2.65.0"), |
| 38 | + .package(url: "https://github.com/swift-server/async-http-client.git", from: "1.20.1"), |
| 39 | + ], |
| 40 | + targets: [ |
| 41 | + .executableTarget( |
| 42 | + name: "sandboxy", |
| 43 | + dependencies: [ |
| 44 | + .product(name: "Containerization", package: "containerization"), |
| 45 | + .product(name: "ContainerizationExtras", package: "containerization"), |
| 46 | + .product(name: "ContainerizationOS", package: "containerization"), |
| 47 | + .product(name: "ContainerizationArchive", package: "containerization"), |
| 48 | + .product(name: "AsyncHTTPClient", package: "async-http-client"), |
| 49 | + .product(name: "NIOCore", package: "swift-nio"), |
| 50 | + .product(name: "NIOPosix", package: "swift-nio"), |
| 51 | + .product(name: "NIOHTTP1", package: "swift-nio"), |
| 52 | + .product(name: "ArgumentParser", package: "swift-argument-parser"), |
| 53 | + .product(name: "Logging", package: "swift-log"), |
| 54 | + ], |
| 55 | + ) |
| 56 | + ] |
| 57 | +) |
0 commit comments