forked from mazdak/AudioWhisper
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPackage.swift
More file actions
50 lines (48 loc) · 1.65 KB
/
Package.swift
File metadata and controls
50 lines (48 loc) · 1.65 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
// swift-tools-version: 5.10
import PackageDescription
let package = Package(
name: "FluidVoice",
platforms: [
.macOS(.v14)
],
products: [
.executable(name: "FluidVoice", targets: ["FluidVoice"])
],
dependencies: [
.package(url: "https://github.com/Alamofire/Alamofire.git", from: "5.10.2"),
.package(url: "https://github.com/soffes/HotKey", from: "0.2.1"),
.package(url: "https://github.com/kstenerud/KSCrash.git", .upToNextMajor(from: "2.3.0"))
],
targets: [
.executableTarget(
name: "FluidVoice",
dependencies: [
"Alamofire",
"HotKey",
.product(name: "Installations", package: "KSCrash")
],
path: "Sources",
exclude: ["__pycache__", "VersionInfo.swift.template"],
resources: [
.process("Assets.xcassets"),
.copy("parakeet_transcribe_pcm.py"),
.copy("parakeet_daemon.py"),
// Bundle additional resources like uv binary and lock files
.copy("Resources")
],
swiftSettings: [
.define("DEBUG", .when(configuration: .debug)),
.unsafeFlags(["-O", "-whole-module-optimization"], .when(configuration: .release))
]
),
.testTarget(
name: "FluidVoiceTests",
dependencies: ["FluidVoice"],
path: "Tests",
exclude: ["README.md", "test_parakeet_transcribe.py"],
swiftSettings: [
.define("DEBUG", .when(configuration: .debug))
]
)
]
)