Repository navigation
Expand file tree
/
Copy pathproject.yml
More file actions
188 lines (180 loc) · 6.21 KB
/
Copy pathproject.yml
File metadata and controls
188 lines (180 loc) · 6.21 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
name: Lilo
options:
createIntermediateGroups: true
deploymentTarget:
macOS: "26.0"
packages:
GRDB:
url: https://github.com/groue/GRDB.swift.git
from: 7.10.0
Sparkle:
url: https://github.com/sparkle-project/Sparkle
from: 2.10.0
targets:
Lilo:
type: application
platform: macOS
configFiles: &configFiles
Debug: Xcode/Configs/Base.xcconfig
Release: Xcode/Configs/Release.xcconfig
settings:
base:
INFOPLIST_FILE: Lilo/Info.plist
# Empty in Release; .debug in Debug, and .tests for make's test host (see configs below).
PRODUCT_BUNDLE_IDENTIFIER: fr.arouillard.lilo$(LILO_BUNDLE_ID_SUFFIX)
PRODUCT_NAME: Lilo
LILO_APP_NAME: Lilo
# Icon Composer file: actool turns it into Assets.car (Liquid Glass appearances) plus AppIcon.icns.
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
# libghostty-vt bundles C++ (simdutf, highway). The header room takes the dyld environment of LiloFork.
OTHER_LDFLAGS: $(inherited) -lc++ -Wl,-headerpad,0x200
# SE-0458: every unsafe construct is marked `unsafe`, and an unmarked one fails the build.
SWIFT_STRICT_MEMORY_SAFETY: YES
OTHER_SWIFT_FLAGS: $(inherited) -Werror StrictMemorySafety
configs:
Debug:
CODE_SIGN_ENTITLEMENTS: Lilo/Lilo.Debug.entitlements
# Never the installed app's identity: its own defaults, WebKit data, keychain access and helper.
# Matches BuildIdentity.appIdentifier; make's test targets override it with .tests.
LILO_BUNDLE_ID_SUFFIX: .debug
# Named apart in Privacy & Security and the Dock, where it would sit beside the installed Lilo.
LILO_APP_NAME: Lilo Debug
# Each build ships only the launch daemon its PowerHelperIdentity registers.
EXCLUDED_SOURCE_FILE_NAMES: fr.arouillard.lilo.power.plist
Release:
CODE_SIGN_ENTITLEMENTS: Lilo/Lilo.entitlements
EXCLUDED_SOURCE_FILE_NAMES: fr.arouillard.lilo.debug.power.plist
dependencies:
- package: GRDB
product: GRDB
- package: Sparkle
product: Sparkle
- framework: Vendor/GhosttyVt.xcframework
embed: false
- target: LiloPowerHelper
embed: true
copy:
destination: executables
- target: LiloMCP
embed: true
copy:
destination: executables
sources:
# Every folder under Lilo/ is a source group; the entries below cover what needs other handling.
- path: Lilo
excludes:
- Info.plist
- "*.entitlements"
- Extensions/bridge-src
- ContentBlocker/BlockerResources
- Generated
- Resources
# Copied whole into the content blocker's built-in extension: kept as one folder.
- path: Lilo/ContentBlocker/BlockerResources
type: folder
# Build products of make ui-build / bridge-gen; gitignored, so a fresh checkout may lack them.
- path: Lilo/Generated
optional: true
- path: LiloPowerHelper/fr.arouillard.lilo.power.plist
buildPhase:
copyFiles:
destination: wrapper
subpath: Contents/Library/LaunchDaemons
- path: LiloPowerHelper/fr.arouillard.lilo.debug.power.plist
buildPhase:
copyFiles:
destination: wrapper
subpath: Contents/Library/LaunchDaemons
- path: Lilo/Lilo.Debug.entitlements
buildPhase: none
- path: Lilo/Lilo.entitlements
buildPhase: none
- path: Lilo/Resources
buildPhase: resources
includes:
- "AppIcon.icon"
- "Lilo.sdef"
- "fr.lproj"
- "es.lproj"
- "zh-Hans.lproj"
- "pt-BR.lproj"
- "ru.lproj"
- "uk.lproj"
- "nl.lproj"
- "tr.lproj"
- "pl.lproj"
- "zh-Hant.lproj"
- "ko.lproj"
- "it.lproj"
- "ja.lproj"
- "de.lproj"
- path: Lilo/Resources/AppIcons
type: folder
buildPhase: resources
- path: Lilo/Resources/shell-integration
type: folder
buildPhase: resources
# Images of the chrome UI, which ChromeUISchemeHandler serves from the bundle and Vite's dev server from public/.
- path: lilo-ui/public/password-managers
type: folder
buildPhase: resources
# The installed release's films and stills, which ChromeUISchemeHandler serves with byte ranges.
- path: lilo-ui/public/release-media
type: folder
buildPhase: resources
LiloPowerHelper:
type: tool
platform: macOS
configFiles: *configFiles
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: fr.arouillard.lilo.power-helper
PRODUCT_NAME: LiloPowerHelper
GENERATE_INFOPLIST_FILE: YES
CREATE_INFOPLIST_SECTION_IN_BINARY: YES
SKIP_INSTALL: YES
sources:
- path: LiloPowerHelper/main.swift
- path: Lilo/App/BuildIdentity.swift
- path: Lilo/Power/PowerHelperListener.swift
- path: Lilo/Power/PowerHelperProtocol.swift
- path: Lilo/Power/PowerHelperService.swift
- path: Lilo/Power/SystemPowerBackend.swift
# What an agent launches as its MCP server: a pipe to the running Lilo's agent socket.
LiloMCP:
type: tool
platform: macOS
configFiles: *configFiles
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: fr.arouillard.lilo.mcp
PRODUCT_NAME: lilo-mcp
GENERATE_INFOPLIST_FILE: YES
CREATE_INFOPLIST_SECTION_IN_BINARY: YES
SKIP_INSTALL: YES
sources:
- path: LiloMCP/main.swift
- path: Lilo/App/BuildIdentity.swift
LiloTests:
type: bundle.unit-test
platform: macOS
sources:
- path: LiloTests
dependencies:
- target: Lilo
settings:
base:
# Not on the shared xcconfig's Swift 6: the tests are not yet clean under strict concurrency.
SWIFT_VERSION: "5.0"
GENERATE_INFOPLIST_FILE: YES
# Registers the observer that removes the WebKit stores tests leave behind.
INFOPLIST_KEY_NSPrincipalClass: LiloTestRunCleanup
schemes:
Lilo:
build:
targets:
Lilo: all
LiloTests: [test]
test:
targets:
- LiloTests