-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathproject.yml
More file actions
367 lines (367 loc) · 14.3 KB
/
Copy pathproject.yml
File metadata and controls
367 lines (367 loc) · 14.3 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
name: MacTools
options:
createIntermediateGroups: true
autoCreateSchemes: false
configs:
Debug: debug
Nightly: release
Release: release
packages:
PermissionFlow:
url: https://github.com/jaywcjlove/PermissionFlow.git
exactVersion: 2.11.2
Sparkle:
url: https://github.com/sparkle-project/Sparkle
exactVersion: 2.9.1
include:
- path: Configs/GeneratedPlugins.yml
targets:
MacToolsCLIProtocol:
type: library.static
platform: macOS
deploymentTarget: '14.0'
sources:
- path: Sources/MacToolsCLIProtocol
settings:
base:
PRODUCT_NAME: MacToolsCLIProtocol
PRODUCT_MODULE_NAME: MacToolsCLIProtocol
SWIFT_VERSION: 6.0
MACOSX_DEPLOYMENT_TARGET: '14.0'
CODE_SIGNING_ALLOWED: false
MacToolsPluginKit:
type: framework
platform: macOS
deploymentTarget: '14.0'
sources:
- path: Sources/MacToolsPluginKit
- path: Sources/Shared/Localization
settings:
base:
PRODUCT_NAME: MacToolsPluginKit
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools.plugin-kit"
GENERATE_INFOPLIST_FILE: true
SWIFT_VERSION: 6.0
DEVELOPMENT_LANGUAGE: zh-Hans
MACOSX_DEPLOYMENT_TARGET: '14.0'
CODE_SIGN_STYLE: Automatic
DEVELOPMENT_TEAM: "$(DEVELOPMENT_TEAM)"
configs:
Nightly:
DEAD_CODE_STRIPPING: true
DEPLOYMENT_POSTPROCESSING: true
STRIP_INSTALLED_PRODUCT: true
Release:
DEAD_CODE_STRIPPING: true
DEPLOYMENT_POSTPROCESSING: true
STRIP_INSTALLED_PRODUCT: true
MacToolsAppIntents:
type: framework
platform: macOS
deploymentTarget: '14.0'
sources:
- path: Sources/MacToolsAppIntents
settings:
base:
PRODUCT_NAME: MacToolsAppIntents
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools.app-intents"
GENERATE_INFOPLIST_FILE: true
SWIFT_VERSION: 6.0
DEVELOPMENT_LANGUAGE: zh-Hans
MACOSX_DEPLOYMENT_TARGET: '14.0'
CODE_SIGN_STYLE: Automatic
DEVELOPMENT_TEAM: "$(DEVELOPMENT_TEAM)"
configs:
Nightly:
DEAD_CODE_STRIPPING: true
DEPLOYMENT_POSTPROCESSING: true
STRIP_INSTALLED_PRODUCT: true
Release:
DEAD_CODE_STRIPPING: true
DEPLOYMENT_POSTPROCESSING: true
STRIP_INSTALLED_PRODUCT: true
MacTools:
type: application
platform: macOS
deploymentTarget: '14.0'
configFiles:
Debug: Configs/AppDebug.xcconfig
Nightly: Configs/AppNightly.xcconfig
Release: Configs/AppRelease.xcconfig
sources:
- path: Sources
excludes:
- "**/.gitkeep"
- MacToolsPluginKit/**
- MacToolsAppIntents/**
- MacToolsCLIProtocol/**
- MacToolsCLI/**
- MacToolsCLIBroker/**
- Extensions/**
- "../Plugins/**"
- Plugins/**/CalendarPluginResources/**
- Resources/ThirdPartyNotices/**
- path: Sources/MacToolsCLI/CLIArgumentParser.swift
- path: Sources/MacToolsCLI/CLIOutput.swift
- path: Sources/MacToolsCLI/CLIStartupDeadline.swift
- path: Sources/MacToolsCLI/CLISignalCoordinator.swift
dependencies:
- target: MacToolsPluginKit
embed: true
- target: MacToolsAppIntents
embed: true
- target: RightClickFinderSync
embed: true
- target: MacToolsCLIProtocol
- target: MacToolsCLI
link: false
embed: false
- target: MacToolsCLIBroker
link: false
embed: false
- package: Sparkle
- package: PermissionFlow
product: PermissionFlow
- package: PermissionFlow
product: SystemSettingsKit
settings:
base:
PRODUCT_NAME: MacTools
PRODUCT_MODULE_NAME: MacTools
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools"
ASSETCATALOG_COMPILER_APPICON_NAME: ""
SWIFT_VERSION: 6.0
DEVELOPMENT_LANGUAGE: zh-Hans
MACOSX_DEPLOYMENT_TARGET: '14.0'
CODE_SIGN_STYLE: Automatic
DEVELOPMENT_TEAM: "$(DEVELOPMENT_TEAM)"
GENERATE_INFOPLIST_FILE: false
INFOPLIST_FILE: Configs/MacTools-Info.plist
CODE_SIGN_ENTITLEMENTS: Configs/MacTools.entitlements
MACTOOLS_URL_SCHEME: mactools
APPLICATION_SUPPORT_DIRECTORY_NAME: MacTools
MACTOOLS_RELEASE_CHANNEL: stable
RIGHT_CLICK_CONFIGURATION_HOME_RELATIVE_PATH: Library/Application Support/MacTools/right-click-menu.json
SPARKLE_FEED_URL: https://mactools.ggbond.app/appcast.xml
SPARKLE_PUBLIC_ED_KEY: YS4ioWunyQC5rP/YQdDbG9panyqCKNyBd0iPTUqIFY0=
SWIFT_OBJC_BRIDGING_HEADER: Sources/MacTools-Bridging-Header.h
SWIFT_INCLUDE_PATHS: "$(SRCROOT)/Sources/Core/MultitouchSupport"
OTHER_LDFLAGS: "-framework MultitouchSupport -framework IOKit -framework EventKit -framework Network -F
/System/Library/PrivateFrameworks"
configs:
Debug:
PRODUCT_NAME: "MacTools Dev"
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools.dev"
MACTOOLS_URL_SCHEME: mactools-dev
APPLICATION_SUPPORT_DIRECTORY_NAME: "MacTools Dev"
MACTOOLS_RELEASE_CHANNEL: development
RIGHT_CLICK_CONFIGURATION_HOME_RELATIVE_PATH: Library/Application Support/MacTools Dev/right-click-menu.json
Nightly:
PRODUCT_NAME: "MacTools Nightly"
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools.nightly"
MACTOOLS_URL_SCHEME: mactools-nightly
APPLICATION_SUPPORT_DIRECTORY_NAME: "MacTools Nightly"
MACTOOLS_RELEASE_CHANNEL: nightly
RIGHT_CLICK_CONFIGURATION_HOME_RELATIVE_PATH: Library/Application Support/MacTools Nightly/right-click-menu.json
SPARKLE_FEED_URL: https://mactools.ggbond.app/nightly/appcast.xml
SWIFT_ACTIVE_COMPILATION_CONDITIONS: "$(inherited) NIGHTLY"
DEAD_CODE_STRIPPING: true
DEPLOYMENT_POSTPROCESSING: true
STRIP_INSTALLED_PRODUCT: true
Release:
DEAD_CODE_STRIPPING: true
DEPLOYMENT_POSTPROCESSING: true
STRIP_INSTALLED_PRODUCT: true
postBuildScripts:
- name: Embed MacTools CLI broker
script: |
set -euo pipefail
app_macos_dir="$TARGET_BUILD_DIR/$CONTENTS_FOLDER_PATH/MacOS"
launch_agents_dir="$TARGET_BUILD_DIR/$CONTENTS_FOLDER_PATH/Library/LaunchAgents"
mkdir -p "$app_macos_dir" "$launch_agents_dir"
ditto "$BUILT_PRODUCTS_DIR/MacToolsCLIBroker" "$app_macos_dir/MacToolsCLIBroker"
service_name="$PRODUCT_BUNDLE_IDENTIFIER.cli-broker"
sed "s/__MACTOOLS_CLI_SERVICE_NAME__/$service_name/g" \
"$SRCROOT/Configs/MacToolsCLIBroker-LaunchAgent.plist" \
> "$launch_agents_dir/app.ggbond.MacTools.cli-broker.plist"
inputFiles:
- "$(BUILT_PRODUCTS_DIR)/MacToolsCLIBroker"
- "$(SRCROOT)/Configs/MacToolsCLIBroker-LaunchAgent.plist"
outputFiles:
- "$(TARGET_BUILD_DIR)/$(CONTENTS_FOLDER_PATH)/MacOS/MacToolsCLIBroker"
- "$(TARGET_BUILD_DIR)/$(CONTENTS_FOLDER_PATH)/Library/LaunchAgents/app.ggbond.MacTools.cli-broker.plist"
- name: Embed license and third-party notices
script: |
"$SRCROOT/scripts/licenses/embed-app-legal-notices.sh" \
--app-bundle "$TARGET_BUILD_DIR/$WRAPPER_NAME"
basedOnDependencyAnalysis: false
inputFiles:
- "$(SRCROOT)/LICENSE"
- "$(SRCROOT)/Sources/Resources/ThirdPartyNotices/manifest.json"
- "$(SRCROOT)/scripts/licenses/embed-app-legal-notices.sh"
- "$(SRCROOT)/scripts/licenses/generate-third-party-notices.py"
outputFiles:
- "$(TARGET_BUILD_DIR)/$(WRAPPER_NAME)/Contents/Resources/LICENSE"
- "$(TARGET_BUILD_DIR)/$(WRAPPER_NAME)/Contents/Resources/THIRD_PARTY_NOTICES.txt"
MacToolsCLI:
type: tool
platform: macOS
deploymentTarget: '14.0'
configFiles:
Debug: Configs/AppDebug.xcconfig
Nightly: Configs/AppNightly.xcconfig
Release: Configs/AppRelease.xcconfig
sources:
- path: Sources/Core/CLI/CLIServiceConfiguration.swift
- path: Sources/Core/CLI/CLIPeerIdentityValidator.swift
- path: Sources/MacToolsCLI
dependencies:
- target: MacToolsCLIProtocol
settings:
base:
PRODUCT_NAME: mactools
PRODUCT_MODULE_NAME: MacToolsCLI
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools.cli"
GENERATE_INFOPLIST_FILE: true
CREATE_INFOPLIST_SECTION_IN_BINARY: true
SWIFT_VERSION: 6.0
MACOSX_DEPLOYMENT_TARGET: '14.0'
CODE_SIGN_STYLE: Automatic
DEVELOPMENT_TEAM: "$(DEVELOPMENT_TEAM)"
OTHER_CODE_SIGN_FLAGS: "--identifier $(PRODUCT_BUNDLE_IDENTIFIER)"
configs:
Debug:
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools.dev.cli"
Nightly:
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools.nightly.cli"
DEAD_CODE_STRIPPING: true
DEPLOYMENT_POSTPROCESSING: true
STRIP_INSTALLED_PRODUCT: true
Release:
DEAD_CODE_STRIPPING: true
DEPLOYMENT_POSTPROCESSING: true
STRIP_INSTALLED_PRODUCT: true
MacToolsCLIBroker:
type: tool
platform: macOS
deploymentTarget: '14.0'
configFiles:
Debug: Configs/AppDebug.xcconfig
Nightly: Configs/AppNightly.xcconfig
Release: Configs/AppRelease.xcconfig
sources:
- path: Sources/Core/CLI/CLIServiceConfiguration.swift
- path: Sources/Core/CLI/CLIPeerIdentityValidator.swift
- path: Sources/Core/CLI/CLIRequestAdmissionState.swift
- path: Sources/MacToolsCLIBroker
dependencies:
- target: MacToolsCLIProtocol
settings:
base:
PRODUCT_NAME: MacToolsCLIBroker
PRODUCT_MODULE_NAME: MacToolsCLIBroker
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools.cli-broker"
GENERATE_INFOPLIST_FILE: true
CREATE_INFOPLIST_SECTION_IN_BINARY: true
SWIFT_VERSION: 6.0
MACOSX_DEPLOYMENT_TARGET: '14.0'
CODE_SIGN_STYLE: Automatic
DEVELOPMENT_TEAM: "$(DEVELOPMENT_TEAM)"
OTHER_CODE_SIGN_FLAGS: "--identifier $(PRODUCT_BUNDLE_IDENTIFIER)"
configs:
Debug:
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools.dev.cli-broker"
Nightly:
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools.nightly.cli-broker"
DEAD_CODE_STRIPPING: true
DEPLOYMENT_POSTPROCESSING: true
STRIP_INSTALLED_PRODUCT: true
Release:
DEAD_CODE_STRIPPING: true
DEPLOYMENT_POSTPROCESSING: true
STRIP_INSTALLED_PRODUCT: true
RightClickFinderSync:
type: app-extension
platform: macOS
deploymentTarget: '14.0'
configFiles:
Debug: Configs/AppDebug.xcconfig
Nightly: Configs/AppNightly.xcconfig
Release: Configs/AppRelease.xcconfig
sources:
- path: Sources/Extensions/RightClickFinderSync
- path: Sources/Core/RightClick
excludes:
- RightClickURLRouter.swift
- path: Sources/Shared/Localization
settings:
base:
PRODUCT_NAME: RightClickFinderSync
PRODUCT_MODULE_NAME: RightClickFinderSync
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools.right-click.finder-sync"
SWIFT_VERSION: 6.0
DEVELOPMENT_LANGUAGE: zh-Hans
MACOSX_DEPLOYMENT_TARGET: '14.0'
CODE_SIGN_STYLE: Automatic
DEVELOPMENT_TEAM: "$(DEVELOPMENT_TEAM)"
GENERATE_INFOPLIST_FILE: false
INFOPLIST_FILE: Sources/Extensions/RightClickFinderSync/RightClickFinderSync-Info.plist
CODE_SIGN_ENTITLEMENTS: Sources/Extensions/RightClickFinderSync/RightClickFinderSync.entitlements
MACTOOLS_URL_SCHEME: mactools
RIGHT_CLICK_EXTENSION_DISPLAY_NAME: MacTools 右键工具
RIGHT_CLICK_TOOLBAR_ITEM_NAME: MacTools
RIGHT_CLICK_CONFIGURATION_HOME_RELATIVE_PATH: Library/Application Support/MacTools/right-click-menu.json
configs:
Debug:
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools.dev.right-click.finder-sync"
CODE_SIGN_ENTITLEMENTS: Sources/Extensions/RightClickFinderSync/RightClickFinderSync-Debug.entitlements
MACTOOLS_URL_SCHEME: mactools-dev
RIGHT_CLICK_EXTENSION_DISPLAY_NAME: MacTools Dev 右键工具
RIGHT_CLICK_TOOLBAR_ITEM_NAME: MacTools Dev
RIGHT_CLICK_CONFIGURATION_HOME_RELATIVE_PATH: Library/Application Support/MacTools Dev/right-click-menu.json
Nightly:
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools.nightly.right-click.finder-sync"
CODE_SIGN_ENTITLEMENTS: Sources/Extensions/RightClickFinderSync/RightClickFinderSync-Nightly.entitlements
MACTOOLS_URL_SCHEME: mactools-nightly
RIGHT_CLICK_EXTENSION_DISPLAY_NAME: MacTools Nightly 右键工具
RIGHT_CLICK_TOOLBAR_ITEM_NAME: MacTools Nightly
RIGHT_CLICK_CONFIGURATION_HOME_RELATIVE_PATH: Library/Application Support/MacTools Nightly/right-click-menu.json
DEAD_CODE_STRIPPING: true
DEPLOYMENT_POSTPROCESSING: true
STRIP_INSTALLED_PRODUCT: true
Release:
DEAD_CODE_STRIPPING: true
DEPLOYMENT_POSTPROCESSING: true
STRIP_INSTALLED_PRODUCT: true
AppInstanceProbe:
type: tool
platform: macOS
deploymentTarget: '14.0'
sources:
- path: Sources/App/AppInstanceCoordinator.swift
- path: Sources/Core/Diagnostics/AppLog.swift
- path: Tests/Support/AppInstanceProbe/AppInstanceProbe.swift
settings:
base:
PRODUCT_NAME: AppInstanceProbe
PRODUCT_MODULE_NAME: AppInstanceProbe
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools.instance-probe"
GENERATE_INFOPLIST_FILE: true
SWIFT_VERSION: 6.0
CODE_SIGNING_ALLOWED: false
AppIntentCircuitBreakerProbe:
type: tool
platform: macOS
deploymentTarget: '14.0'
sources:
- path: Sources/Core/AppIntents/MacToolsAppIntentCircuitBreaker.swift
- path: Sources/Core/Diagnostics/AppLog.swift
- path: Tests/Support/AppIntentCircuitBreakerProbe/AppIntentCircuitBreakerProbe.swift
settings:
base:
PRODUCT_NAME: AppIntentCircuitBreakerProbe
PRODUCT_MODULE_NAME: AppIntentCircuitBreakerProbe
PRODUCT_BUNDLE_IDENTIFIER: "$(BUNDLE_IDENTIFIER_PREFIX).mactools.app-intent-circuit-breaker-probe"
GENERATE_INFOPLIST_FILE: true
SWIFT_VERSION: 6.0
CODE_SIGNING_ALLOWED: false