-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathPackage.swift
59 lines (52 loc) · 1.94 KB
/
Package.swift
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
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let isLocalDebug = true
let dependency_AlfredWorkflowUtils: Package.Dependency = isLocalDebug ?
.package(path: "../alfred-workflow-utils") :
.package(url: "https://github.com/hanleylee/alfred-workflow-utils.git", .upToNextMajor(from: "0.0.1"))
let package = Package(
name: "alfred-eudic-workflow",
platforms: [
.macOS(.v13),
],
products: [
.executable(name: "alfred-eudic", targets: ["AlfredEudicCLI"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMajor(from: "1.5.0")),
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.15.3"),
dependency_AlfredWorkflowUtils,
],
targets: [
.executableTarget(
name: "AlfredEudicCLI",
dependencies: [
"SimpleDictionaryCore",
.product(name: "AlfredWorkflowUpdater", package: "alfred-workflow-utils"),
.product(name: "AlfredWorkflowScriptFilter", package: "alfred-workflow-utils"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
],
path: "Sources/AlfredEudicCLI"
),
.target(
name: "SimpleDictionaryCore",
dependencies: [
.product(name: "AlfredWorkflowUpdater", package: "alfred-workflow-utils"),
.product(name: "SQLite", package: "SQLite.swift"),
],
path: "Sources/SimpleDictionaryCore",
resources: [
.process("Resources"),
]
),
// MARK: - TEST -
.testTarget(
name: "AlfredEudicTests",
dependencies: [
"SimpleDictionaryCore",
],
path: "Tests/AlfredEudicTests"
),
]
)