-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.yml
More file actions
166 lines (166 loc) · 5.29 KB
/
Copy pathproject.yml
File metadata and controls
166 lines (166 loc) · 5.29 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
name: LockIn
options:
bundleIdPrefix: com.humblebee.lockin
deploymentTarget:
macOS: "13.0"
createIntermediateGroups: true
attributes:
# matches Xcode 26.6 so the IDE stops offering "Update to recommended settings"
LastUpgradeCheck: "2660"
settings:
base:
SWIFT_VERSION: "6.0"
CODE_SIGN_STYLE: Automatic
DEVELOPMENT_TEAM: "252N2WS4Y3"
ENABLE_HARDENED_RUNTIME: YES
MARKETING_VERSION: "0.0.0"
CURRENT_PROJECT_VERSION: "1"
configs:
Release:
CODE_SIGN_INJECT_BASE_ENTITLEMENTS: NO
targets:
LockIn:
type: application
platform: macOS
sources: [App, Shared]
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.humblebee.lockin
INFOPLIST_KEY_LSUIElement: NO
GENERATE_INFOPLIST_FILE: YES
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
CODE_SIGN_ENTITLEMENTS: App/LockIn.entitlements
dependencies:
- target: lockind
embed: true
copy:
destination: executables
- target: lockin-agent
embed: true
copy:
destination: executables
- target: LockInNotifier
embed: true
copy:
destination: plugins
subpath: Helpers
postBuildScripts:
- name: Embed Launchd plists
basedOnDependencyAnalysis: false
script: |
set -e
DAEMONS="$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/LaunchDaemons"
AGENTS="$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/LaunchAgents"
mkdir -p "$DAEMONS" "$AGENTS"
cp "$SRCROOT/Daemon/lockind.plist" "$DAEMONS/"
cp "$SRCROOT/Agent/lockin-agent.plist" "$AGENTS/"
- name: Stamp version from git
basedOnDependencyAnalysis: false
script: |
set -e
# release CI injects a real MARKETING_VERSION; only derive from git for local 0.0.0 builds
[ "$MARKETING_VERSION" != "0.0.0" ] && exit 0
GIT_VERSION=$(git -C "$SRCROOT" describe --tags --always --dirty 2>/dev/null | sed 's/^v//')
[ -z "$GIT_VERSION" ] && exit 0
PLIST="$BUILT_PRODUCTS_DIR/$INFOPLIST_PATH"
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $GIT_VERSION" "$PLIST" 2>/dev/null || true
LockInDaemonCore:
type: library.static
platform: macOS
sources: [DaemonCore, Shared]
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.humblebee.lockin.daemoncore
SWIFT_OBJC_BRIDGING_HEADER: DaemonCore/Engine-Bridging-Header.h
GCC_PREFIX_HEADER: DaemonCore/Engine/Engine-Prefix.pch
GCC_PRECOMPILE_PREFIX_HEADER: YES
DEFINES_MODULE: YES
# nothing imports the generated -Swift.h (ObjC→Swift goes through the bridging header),
# and installing it trips the user-script sandbox on Xcode 26 (ditto EPERM in the
# auto-generated "Copy Swift Objective-C Interface Header" phase)
SWIFT_INSTALL_OBJC_HEADER: NO
# NSString+IPAddress.m is a category-only file (local symbols only) — silence libtool's noise
OTHER_LIBTOOLFLAGS: -no_warning_for_no_symbols
HEADER_SEARCH_PATHS:
- $(SRCROOT)/DaemonCore
- $(SRCROOT)/DaemonCore/Engine/Block Management
- $(SRCROOT)/DaemonCore/Engine/Common
- $(SRCROOT)/DaemonCore/Engine/Common/Utility
lockind:
type: tool
platform: macOS
sources: [Daemon]
dependencies:
- target: LockInDaemonCore
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.humblebee.lockin.daemon
GENERATE_INFOPLIST_FILE: YES
CREATE_INFOPLIST_SECTION_IN_BINARY: YES
LockInAgentCore:
type: library.static
platform: macOS
sources: [AgentCore, Shared]
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.humblebee.lockin.agentcore
SWIFT_OBJC_BRIDGING_HEADER: AgentCore/Agent-Bridging-Header.h
DEFINES_MODULE: YES
# see LockInDaemonCore note: unused generated header + Xcode 26 script sandbox
SWIFT_INSTALL_OBJC_HEADER: NO
lockin-agent:
type: tool
platform: macOS
sources: [Agent]
dependencies:
- target: LockInAgentCore
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.humblebee.lockin.agent
GENERATE_INFOPLIST_FILE: YES
CREATE_INFOPLIST_SECTION_IN_BINARY: YES
INFOPLIST_KEY_LSUIElement: YES
LockInNotifier:
type: application
platform: macOS
sources:
- Notifier
- path: App/Assets.xcassets
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.humblebee.lockin.notifier
GENERATE_INFOPLIST_FILE: YES
INFOPLIST_KEY_LSUIElement: YES
INFOPLIST_KEY_CFBundleDisplayName: LockIn
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
DaemonTests:
type: bundle.unit-test
platform: macOS
sources: [Tests/DaemonTests]
dependencies:
- target: LockInDaemonCore
AppTests:
type: bundle.unit-test
platform: macOS
sources: [Tests/AppTests]
dependencies:
- target: LockIn
AgentTests:
type: bundle.unit-test
platform: macOS
sources: [Tests/AgentTests]
dependencies:
- target: LockInAgentCore
schemes:
LockIn:
build:
targets:
LockIn: all
lockind: all
lockin-agent: all
test:
targets:
- DaemonTests
- AppTests
- AgentTests
gatherCoverageData: false