forked from fluffypony/yojam
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
56 lines (54 loc) · 1.92 KB
/
Package.swift
File metadata and controls
56 lines (54 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// NOTE: This Package.swift is for source organization, dependency resolution,
// and `swift test` only. The canonical build artifact — with .appex bundles
// for the Share Extension and Safari Web Extension, the native messaging host
// binary, and proper entitlements — is produced by `xcodegen generate && xcodebuild`.
//
// `swift build` produces only the bare Yojam executable and YojamCore library.
// It does NOT produce a working .app bundle with Info.plist, entitlements,
// URL scheme registration, or embedded extensions.
// swift-tools-version: 6.1
import PackageDescription
let package = Package(
name: "Yojam",
platforms: [.macOS(.v14)],
products: [
.library(name: "YojamCore", targets: ["YojamCore"]),
.executable(name: "Yojam", targets: ["Yojam"]),
.executable(name: "yojam-cli", targets: ["YojamCLI"])
],
dependencies: [
.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.7.0")
],
targets: [
.target(
name: "YojamCore",
path: "Sources/YojamCore"
),
.executableTarget(
name: "Yojam",
dependencies: [
"YojamCore",
.product(name: "Sparkle", package: "Sparkle")
],
path: "Sources/Yojam",
exclude: ["Resources/Info.plist", "Resources/Yojam.entitlements", "Resources/menubar.svg"],
resources: [.process("Resources")]
),
.executableTarget(
name: "YojamCLI",
dependencies: ["YojamCore"],
path: "Sources/YojamCLI",
exclude: ["YojamCLI.entitlements"]
),
.testTarget(
name: "YojamTests",
dependencies: ["Yojam"],
path: "Tests/YojamTests"
),
.testTarget(
name: "YojamCoreTests",
dependencies: ["YojamCore"],
path: "Tests/YojamCoreTests"
)
]
)