Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
38 lines (37 loc) · 1.37 KB
/
Copy pathPackage.swift
File metadata and controls
38 lines (37 loc) · 1.37 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
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "Lonar",
platforms: [.macOS(.v14)],
targets: [
.target(
name: "LonarObjC",
path: "Sources/LonarObjC",
publicHeadersPath: "include"
),
.executableTarget(
name: "Lonar",
dependencies: ["LonarObjC"],
path: "Sources/Lonar",
exclude: ["Vendor/LICENSE-AppleSiliconDDC"],
// Sparkle.framework comes from Scripts/fetch-sparkle.sh (pinned
// official release into .sparkle/) — SPM's binary-artifact
// downloader is avoided deliberately.
swiftSettings: [
.unsafeFlags(["-F", ".sparkle"]),
],
linkerSettings: [
.linkedFramework("IOKit"),
.linkedFramework("CoreDisplay"),
.unsafeFlags([
"-F", ".sparkle",
// Installed app: framework embedded in the bundle.
"-Xlinker", "-rpath", "-Xlinker", "@executable_path/../Frameworks",
// Dev builds run from .build/arm64-apple-macosx/<config>/:
// resolve .sparkle/ at the package root.
"-Xlinker", "-rpath", "-Xlinker", "@executable_path/../../../.sparkle",
]),
]
),
]
)