Repository navigation
Expand file tree
/
Copy pathproject.yml
More file actions
182 lines (182 loc) · 6.28 KB
/
Copy pathproject.yml
File metadata and controls
182 lines (182 loc) · 6.28 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
name: SmartShot
options:
bundleIdPrefix: com.infinityf4p
deploymentTarget:
macOS: "14.0"
createIntermediateGroups: true
settings:
base:
SWIFT_VERSION: "6.0"
MACOSX_DEPLOYMENT_TARGET: "14.0"
CODE_SIGN_STYLE: Manual
CODE_SIGN_IDENTITY: BlockShot Local Development
CURRENT_PROJECT_VERSION: 11
MARKETING_VERSION: 0.2.3
ENABLE_HARDENED_RUNTIME: YES
GENERATE_INFOPLIST_FILE: YES
configs:
Release:
CODE_SIGN_INJECT_BASE_ENTITLEMENTS: NO
targets:
SmartShotCore:
type: framework
platform: macOS
sources:
- Sources/SmartShotCore
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.infinityf4p.SmartShotCore
DEFINES_MODULE: YES
MACH_O_TYPE: staticlib
SmartShot:
type: application
platform: macOS
sources:
- Sources/SmartShotApp
- Sources/SmartShotBrowserBridge
- Sources/SmartShotCommand
- path: Resources/Assets.xcassets
buildPhase: resources
- path: Resources/Localizations
buildPhase: resources
dependencies:
- target: SmartShotCore
- target: SmartShotSafariExtension
- target: SmartShotNativeHost
link: false
embed: false
- target: SmartShotCLI
link: false
embed: false
postBuildScripts:
- name: Embed Chromium native host
inputFiles:
- $(BUILT_PRODUCTS_DIR)/SmartShotNativeHost
- $(BUILT_PRODUCTS_DIR)/smartshot
outputFiles:
- $(TARGET_BUILD_DIR)/$(CONTENTS_FOLDER_PATH)/Helpers/SmartShotNativeHost
- $(TARGET_BUILD_DIR)/$(CONTENTS_FOLDER_PATH)/Helpers/smartshot
script: |
set -euo pipefail
destination="$TARGET_BUILD_DIR/$CONTENTS_FOLDER_PATH/Helpers"
mkdir -p "$destination"
/usr/bin/ditto "$BUILT_PRODUCTS_DIR/SmartShotNativeHost" "$destination/SmartShotNativeHost"
/usr/bin/ditto "$BUILT_PRODUCTS_DIR/smartshot" "$destination/smartshot"
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.infinityf4p.SmartShot
PRODUCT_NAME: SmartShot
ENABLE_DEBUG_DYLIB: NO
GENERATE_INFOPLIST_FILE: NO
INFOPLIST_FILE: Resources/App/Info.plist
CODE_SIGN_ENTITLEMENTS: Resources/App/SmartShot.entitlements
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME: AccentColor
SmartShotSafariExtension:
type: app-extension
platform: macOS
sources:
- Sources/SmartShotSafariExtension
- Sources/SmartShotBrowserBridge
- path: BrowserExtension/manifest.json
buildPhase: resources
- path: BrowserExtension/background.js
buildPhase: resources
- path: BrowserExtension/content.js
buildPhase: resources
- path: BrowserExtension/shared
type: folder
buildPhase: resources
- path: BrowserExtension/icons
type: folder
buildPhase: resources
dependencies:
- sdk: SafariServices.framework
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.infinityf4p.SmartShot.SafariExtension
PRODUCT_NAME: SmartShot Safari Extension
PRODUCT_MODULE_NAME: SmartShotSafariExtension
ENABLE_DEBUG_DYLIB: NO
INFOPLIST_FILE: Resources/SafariExtension/Info.plist
CODE_SIGN_ENTITLEMENTS: Resources/SafariExtension/SmartShotSafariExtension.entitlements
INFOPLIST_KEY_CFBundleDisplayName: SmartShot Safari Extension
APPLICATION_EXTENSION_API_ONLY: YES
ENABLE_APP_SANDBOX: YES
SKIP_INSTALL: YES
LD_RUNPATH_SEARCH_PATHS:
- $(inherited)
- '@executable_path/../Frameworks'
- '@executable_path/../../../../Frameworks'
SmartShotNativeHost:
type: tool
platform: macOS
sources:
- Sources/SmartShotNativeHost
- Sources/SmartShotBrowserBridge
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.infinityf4p.SmartShot.NativeHost
PRODUCT_NAME: SmartShotNativeHost
SmartShotCLI:
type: tool
platform: macOS
sources:
- Sources/SmartShotCLI
- Sources/SmartShotCommand
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.infinityf4p.SmartShot.CLI
PRODUCT_NAME: smartshot
SmartShotCoreTests:
type: bundle.unit-test
platform: macOS
sources:
- Tests/SmartShotCoreTests
dependencies:
- target: SmartShotCore
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.infinityf4p.SmartShotCoreTests
SmartShotAppTests:
type: bundle.unit-test
platform: macOS
sources:
- Tests/SmartShotAppTests
- path: Sources/SmartShotBrowserBridge
- path: Sources/SmartShotCommand
- path: Sources/SmartShotApp/Services/GlobalShortcutMonitor.swift
- path: Sources/SmartShotApp/Services/LaunchAtLoginService.swift
- path: Sources/SmartShotApp/Services/CaptureOcclusionPolicy.swift
- path: Sources/SmartShotApp/Services/CaptureHistoryStore.swift
- path: Sources/SmartShotApp/Services/CapturePostProcessingPolicy.swift
- path: Sources/SmartShotApp/Services/CaptureOutputService.swift
- path: Sources/SmartShotApp/Services/ScreenCaptureService.swift
- path: Sources/SmartShotApp/Services/TextRecognitionService.swift
- path: Sources/SmartShotApp/Services/ChromiumNativeMessagingInstaller.swift
- path: Sources/SmartShotApp/Services/SafariExtensionService.swift
- path: Sources/SmartShotApp/Services/BrowserCaptureImportService.swift
- path: Sources/SmartShotApp/Services/ManualScrollAttemptTracker.swift
- path: Sources/SmartShotApp/Services/PermissionService.swift
- path: Sources/SmartShotApp/Recording
- path: Sources/SmartShotApp/Overlay/ScrollingSelectionCommit.swift
- path: Sources/SmartShotApp/Overlay/CaptureSelectionMode.swift
- path: Sources/SmartShotApp/Overlay/SelectionOverlayKeyCommand.swift
- path: Sources/SmartShotApp/Views/AppSymbols.swift
dependencies:
- target: SmartShotCore
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.infinityf4p.SmartShotAppTests
schemes:
SmartShot:
build:
targets:
SmartShot: all
SmartShotSafariExtension: all
SmartShotCoreTests: [test]
SmartShotAppTests: [test]
test:
targets:
- SmartShotCoreTests
- SmartShotAppTests