Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
70 lines (69 loc) · 2.33 KB
/
Copy pathPackage.swift
File metadata and controls
70 lines (69 loc) · 2.33 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "BusinessBar",
defaultLocalization: "en",
platforms: [
.macOS(.v14)
],
products: [
.executable(
name: "BusinessBar",
targets: ["BusinessBar"]
)
],
dependencies: [
.package(url: "https://github.com/sindresorhus/Defaults", from: "8.0.0"),
.package(url: "https://github.com/sindresorhus/KeyboardShortcuts", from: "2.0.0"),
.package(url: "https://github.com/sindresorhus/LaunchAtLogin-Modern", from: "1.0.0"),
.package(url: "https://github.com/openid/AppAuth-iOS", from: "1.7.0"),
.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.5.0")
],
targets: [
// Core library — pure business-logic code importable by both the app
// and the unit-test target.
.target(
name: "BusinessBarCore",
dependencies: [
"Defaults",
.product(name: "AppAuth", package: "AppAuth-iOS")
],
path: "BusinessBarCore"
),
// Main application executable
.executableTarget(
name: "BusinessBar",
dependencies: [
"BusinessBarCore",
"Defaults",
"KeyboardShortcuts",
.product(name: "LaunchAtLogin", package: "LaunchAtLogin-Modern"),
.product(name: "AppAuth", package: "AppAuth-iOS"),
"Sparkle"
],
path: "BusinessBar",
exclude: [
"Resources/Info.plist",
"Resources/BusinessBar.entitlements",
"Resources/AppIcon.icns",
"Resources/credentials.local.json.example",
"Resources/credentials.local.json"
],
resources: [
.process("Resources/Assets.xcassets"),
.process("Resources/en.lproj"),
.copy("Resources/credentials.json")
]
),
// Unit-test target
.testTarget(
name: "BusinessBarTests",
dependencies: [
"BusinessBarCore",
"Defaults",
.product(name: "AppAuth", package: "AppAuth-iOS")
],
path: "Tests/BusinessBarTests"
)
]
)