-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathProject.swift
More file actions
62 lines (61 loc) · 2.49 KB
/
Project.swift
File metadata and controls
62 lines (61 loc) · 2.49 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
import ProjectDescription
let project = Project(
name: "MoePeek",
settings: .settings(
base: [
"INFOPLIST_KEY_LSUIElement": "YES",
"INFOPLIST_KEY_NSAccessibilityUsageDescription":
"MoePeek needs accessibility access to read selected text.",
"INFOPLIST_KEY_NSScreenCaptureUsageDescription":
"MoePeek needs screen capture for OCR translation.",
"SWIFT_STRICT_CONCURRENCY": "complete",
],
configurations: [
.debug(name: "Debug", xcconfig: "Configurations/Signing.xcconfig"),
.release(name: "Release", xcconfig: "Configurations/Signing.xcconfig"),
]
),
targets: [
.target(
name: "MoePeek",
destinations: .macOS,
product: .app,
bundleId: "com.nahida.MoePeek",
deploymentTargets: .macOS("14.0"),
infoPlist: .extendingDefault(with: [
"CFBundleDevelopmentRegion": "en",
"CFBundleShortVersionString": "$(MARKETING_VERSION)",
"CFBundleVersion": "$(CURRENT_PROJECT_VERSION)",
"SUFeedURL": "https://github.com/cosZone/MoePeek/releases/latest/download/appcast.xml",
"SUPublicEDKey": "$(SPARKLE_ED_PUBLIC_KEY)",
"CFBundleURLTypes": [
[
"CFBundleURLName": "com.nahida.MoePeek",
"CFBundleURLSchemes": ["mopeek"],
],
],
]),
sources: ["Sources/**"],
resources: ["Resources/**"],
entitlements: .file(path: "Entitlements/MoePeek.entitlements"),
dependencies: [
.external(name: "KeyboardShortcuts"),
.external(name: "Defaults"),
.external(name: "Sparkle"),
],
settings: .settings(
base: [
"CODE_SIGN_STYLE": "$(MOEPEEK_CODE_SIGN_STYLE)",
"CODE_SIGN_IDENTITY": "$(MOEPEEK_CODE_SIGN_IDENTITY)",
"DEVELOPMENT_TEAM": "$(MOEPEEK_DEVELOPMENT_TEAM)",
"MARKETING_VERSION": "0.13.1",
"CURRENT_PROJECT_VERSION": "1",
],
configurations: [
.debug(name: "Debug", xcconfig: "Configurations/Signing.xcconfig"),
.release(name: "Release", xcconfig: "Configurations/Signing.xcconfig"),
]
)
),
]
)