-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.yml
More file actions
252 lines (244 loc) · 8.64 KB
/
project.yml
File metadata and controls
252 lines (244 loc) · 8.64 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
name: SaneClick
configs:
Debug: debug
ProdDebug: debug
Release: release
Release-AppStore: release
options:
bundleIdPrefix: com.saneclick
deploymentTarget:
macOS: "14.0"
xcodeVersion: "16.0"
packages:
Sparkle:
url: https://github.com/sparkle-project/Sparkle
from: 2.8.0
SaneUI:
path: ../../infra/SaneUI
settings:
DEAD_CODE_STRIPPING: YES
SWIFT_EMIT_LOC_STRINGS: YES
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS: YES
configs:
Debug:
ENABLE_HARDENED_RUNTIME: NO
Release:
ENABLE_HARDENED_RUNTIME: YES
Release-AppStore:
ENABLE_HARDENED_RUNTIME: YES
# Warnings
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING: YES
CLANG_WARN_BOOL_CONVERSION: YES
CLANG_WARN_COMMA: YES
CLANG_WARN_CONSTANT_CONVERSION: YES
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS: YES
CLANG_WARN_EMPTY_BODY: YES
CLANG_WARN_ENUM_CONVERSION: YES
CLANG_WARN_INFINITE_RECURSION: YES
CLANG_WARN_INT_CONVERSION: YES
CLANG_WARN_NON_LITERAL_NULL_CONVERSION: YES
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF: YES
CLANG_WARN_OBJC_LITERAL_CONVERSION: YES
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER: YES
CLANG_WARN_RANGE_LOOP_ANALYSIS: YES
CLANG_WARN_STRICT_PROTOTYPES: YES
CLANG_WARN_SUSPICIOUS_MOVE: YES
CLANG_WARN_UNREACHABLE_CODE: YES
CLANG_WARN__DUPLICATE_METHOD_MATCH: YES
ENABLE_STRICT_OBJC_MSGSEND: YES
GCC_NO_COMMON_BLOCKS: YES
GCC_WARN_64_TO_32_BIT_CONVERSION: YES
GCC_WARN_ABOUT_RETURN_TYPE: YES_ERROR
GCC_WARN_UNDECLARED_SELECTOR: YES
GCC_WARN_UNINITIALIZED_AUTOS: YES_AGGRESSIVE
GCC_WARN_UNUSED_FUNCTION: YES
GCC_WARN_UNUSED_VARIABLE: YES
schemes:
SaneClick:
build:
targets:
SaneClick: all
SaneClickExtension: all
SaneClickTests: [test]
test:
gatherCoverageData: true
targets:
- SaneClickTests
run:
config: Debug
archive:
config: Release
SaneClick-AppStore:
build:
targets:
SaneClick: all
SaneClickExtension: all
archive:
config: Release-AppStore
targets:
SaneClick:
type: application
platform: macOS
bundleId: com.saneclick.SaneClick
deploymentTarget:
macOS: "14.0"
sources:
- path: SaneClick
excludes:
- "CLAUDE.md"
- "**/*.md"
settings:
base:
INFOPLIST_FILE: SaneClick/Info.plist
PRODUCT_NAME: SaneClick
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
MARKETING_VERSION: "1.1.0"
CURRENT_PROJECT_VERSION: "1100"
ENABLE_PREVIEWS: YES
SWIFT_VERSION: "6.0"
SWIFT_STRICT_CONCURRENCY: complete
MACOSX_DEPLOYMENT_TARGET: "14.0"
ARCHS: arm64
VALID_ARCHS: arm64
CODE_SIGN_STYLE: Manual
CODE_SIGN_INJECT_BASE_ENTITLEMENTS: YES
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: YES
configs:
Debug:
CODE_SIGN_IDENTITY: "-"
CODE_SIGN_ENTITLEMENTS: SaneClick/SaneClick.debug.entitlements
ProdDebug:
DEVELOPMENT_TEAM: M78L6FXD48
CODE_SIGN_IDENTITY: "Apple Development"
CODE_SIGN_ENTITLEMENTS: SaneClick/SaneClick.debug.entitlements
Release:
DEVELOPMENT_TEAM: M78L6FXD48
CODE_SIGN_IDENTITY: "Developer ID Application"
CODE_SIGN_ENTITLEMENTS: SaneClick/SaneClick.entitlements
Release-AppStore:
DEVELOPMENT_TEAM: M78L6FXD48
CODE_SIGN_STYLE: Automatic
CODE_SIGN_ENTITLEMENTS: SaneClick/SaneClick-AppStore.entitlements
OTHER_SWIFT_FLAGS: "$(inherited) -D APP_STORE"
postBuildScripts:
- name: Stub Sparkle for App Store builds
script: |
if [ "${CONFIGURATION}" = "Release-AppStore" ]; then
SPARKLE_FW="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Sparkle.framework"
if [ -d "${SPARKLE_FW}" ]; then
echo "Replacing Sparkle.framework with empty stub for App Store build"
# Preserve Info.plist before nuking
PLIST_TMP="/tmp/sparkle_info_$$.plist"
cp "${SPARKLE_FW}/Versions/B/Resources/Info.plist" "${PLIST_TMP}" 2>/dev/null || true
# Nuke entire framework (removes nested Updater.app, XPCServices, etc.)
rm -rf "${SPARKLE_FW}"
# Recreate clean minimal framework structure
mkdir -p "${SPARKLE_FW}/Versions/B/Resources"
# Create stub dylib that satisfies LC_LOAD_DYLIB
printf 'void __sparkle_stub(void){}\n' | \
xcrun clang -x c - -dynamiclib \
-install_name "@rpath/Sparkle.framework/Versions/B/Sparkle" \
-o "${SPARKLE_FW}/Versions/B/Sparkle" 2>/dev/null
# Restore preserved Info.plist
if [ -f "${PLIST_TMP}" ]; then
mv "${PLIST_TMP}" "${SPARKLE_FW}/Versions/B/Resources/Info.plist"
fi
# Create required framework symlinks
ln -sfn B "${SPARKLE_FW}/Versions/Current"
ln -sfn Versions/Current/Sparkle "${SPARKLE_FW}/Sparkle"
ln -sfn Versions/Current/Resources "${SPARKLE_FW}/Resources"
# Sign: stub binary first, then framework bundle
/usr/bin/codesign --force --sign "${EXPANDED_CODE_SIGN_IDENTITY}" "${SPARKLE_FW}/Versions/B/Sparkle" 2>&1
/usr/bin/codesign --force --sign "${EXPANDED_CODE_SIGN_IDENTITY}" "${SPARKLE_FW}" 2>&1
echo "Sparkle stubbed successfully"
fi
rm -rf "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Sparkle_XPCServices.framework" 2>/dev/null || true
fi
basedOnDependencyAnalysis: false
dependencies:
- target: SaneClickExtension
embed: true
codeSign: true
copyPhase:
destination: plugins
- package: Sparkle
- package: SaneUI
info:
path: SaneClick/Info.plist
properties:
CFBundleShortVersionString: "$(MARKETING_VERSION)"
CFBundleVersion: "$(CURRENT_PROJECT_VERSION)"
NSAppleEventsUsageDescription: "SaneClick runs user-created automation scripts that can control other apps (for example Finder actions and notifications) when you choose those scripts."
LSApplicationCategoryType: "public.app-category.utilities"
SUFeedURL: "https://saneclick.com/appcast.xml"
SUEnableSystemProfiling: false
SUEnableAutomaticChecks: true
SUPublicEDKey: "7Pl/8cwfb2vm4Dm65AByslkMCScLJ9tbGlwGGx81qYU="
SaneClickExtension:
type: app-extension
platform: macOS
productType: com.apple.product-type.finder-sync-extension
bundleId: com.saneclick.SaneClick.FinderSync
deploymentTarget:
macOS: "14.0"
sources:
- path: SaneClickExtension
excludes:
- "CLAUDE.md"
- "**/*.md"
settings:
base:
INFOPLIST_FILE: SaneClickExtension/Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.saneclick.SaneClick.FinderSync
PRODUCT_NAME: SaneClickExtension
MARKETING_VERSION: "1.1.0"
CURRENT_PROJECT_VERSION: "1100"
SWIFT_VERSION: "6.0"
SWIFT_STRICT_CONCURRENCY: complete
MACOSX_DEPLOYMENT_TARGET: "14.0"
ARCHS: arm64
VALID_ARCHS: arm64
CODE_SIGN_STYLE: Manual
SKIP_INSTALL: YES
LD_RUNPATH_SEARCH_PATHS: "$(inherited) @executable_path/../Frameworks @executable_path/../../../../Frameworks"
configs:
Debug:
CODE_SIGN_IDENTITY: "-"
CODE_SIGN_ENTITLEMENTS: SaneClickExtension/SaneClickExtension.debug.entitlements
ProdDebug:
DEVELOPMENT_TEAM: M78L6FXD48
CODE_SIGN_IDENTITY: "Apple Development"
CODE_SIGN_ENTITLEMENTS: SaneClickExtension/SaneClickExtension.debug.entitlements
Release:
DEVELOPMENT_TEAM: M78L6FXD48
CODE_SIGN_IDENTITY: "Developer ID Application"
CODE_SIGN_ENTITLEMENTS: SaneClickExtension/SaneClickExtension.entitlements
Release-AppStore:
DEVELOPMENT_TEAM: M78L6FXD48
CODE_SIGN_STYLE: Automatic
CODE_SIGN_ENTITLEMENTS: SaneClickExtension/SaneClickExtension.entitlements
OTHER_SWIFT_FLAGS: "$(inherited) -D APP_STORE"
SaneClickTests:
type: bundle.unit-test
platform: macOS
bundleId: com.saneclick.SaneClickTests
deploymentTarget:
macOS: "14.0"
sources:
- path: Tests
excludes:
- "**/*.md"
settings:
base:
DEAD_CODE_STRIPPING: NO
CODE_SIGN_STYLE: Manual
ENABLE_HARDENED_RUNTIME: NO
GENERATE_INFOPLIST_FILE: YES
configs:
Debug:
CODE_SIGN_IDENTITY: "-"
Release:
DEVELOPMENT_TEAM: M78L6FXD48
CODE_SIGN_IDENTITY: "Apple Development"
dependencies:
- target: SaneClick