forked from digimata/quill
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
32 lines (31 loc) · 1.15 KB
/
Copy pathPackage.swift
File metadata and controls
32 lines (31 loc) · 1.15 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
// swift-tools-version:6.0
import PackageDescription
let package = Package(
name: "quill",
platforms: [.macOS(.v15)],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.3.0"),
.package(url: "https://github.com/FluidInference/FluidAudio.git", from: "0.7.0"),
],
targets: [
.executableTarget(
name: "quill",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "FluidAudio", package: "FluidAudio"),
],
exclude: ["Info.plist"],
linkerSettings: [
// Embed Info.plist into the binary so TCC can attribute the
// system-audio-capture permission to quill itself when it
// runs as a LaunchAgent (no .app bundle to carry a plist).
.unsafeFlags([
"-Xlinker", "-sectcreate",
"-Xlinker", "__TEXT",
"-Xlinker", "__info_plist",
"-Xlinker", "Sources/quill/Info.plist",
]),
]
),
]
)