-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
48 lines (47 loc) · 1.59 KB
/
Package.swift
File metadata and controls
48 lines (47 loc) · 1.59 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
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "Clyde",
platforms: [.macOS(.v13)],
dependencies: [
// Sparkle — auto-update framework. Used to deliver new Clyde
// releases to users without manual re-download. Reads an appcast
// XML feed (hosted on our GitHub Pages site) and verifies the
// download with EdDSA before installing.
.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.6.0"),
],
targets: [
.executableTarget(
name: "Clyde",
dependencies: [
.product(name: "Sparkle", package: "Sparkle"),
],
path: "Clyde",
exclude: [
"Info.plist",
// The .iconset directory is the source for `iconutil` to
// generate AppIcon.icns. SPM doesn't need to ship the
// individual PNGs — only the compiled .icns matters at
// runtime.
"Assets/AppIcon.iconset",
],
resources: [
.copy("Resources/clyde-hook.sh"),
.copy("Assets/AppIcon.icns"),
],
linkerSettings: [
.unsafeFlags([
"-Xlinker", "-sectcreate",
"-Xlinker", "__TEXT",
"-Xlinker", "__info_plist",
"-Xlinker", "Clyde/Info.plist"
])
]
),
.testTarget(
name: "ClydeTests",
dependencies: ["Clyde"],
path: "ClydeTests"
)
]
)