-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathproject.yml
More file actions
78 lines (71 loc) · 2.47 KB
/
project.yml
File metadata and controls
78 lines (71 loc) · 2.47 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
name: AgentBar
options:
bundleIdPrefix: com.agentbar
deploymentTarget:
macOS: "13.0"
xcodeVersion: "26.2"
minimumXcodeGenVersion: "2.38"
settings:
base:
SWIFT_VERSION: "6.0"
MACOSX_DEPLOYMENT_TARGET: "13.0"
targets:
AgentBar:
type: application
platform: macOS
sources:
- path: AgentBar
dependencies:
- sdk: libsqlite3.tbd
postBuildScripts:
- name: Embed Git Version Info
basedOnDependencyAnalysis: false
script: |
set -euo pipefail
INFO_PLIST="${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"
PLIST_BUDDY="/usr/libexec/PlistBuddy"
GIT_HASH="$(/usr/bin/git -C "${SRCROOT}" rev-parse --short HEAD 2>/dev/null || true)"
GIT_TAG="$(/usr/bin/git -C "${SRCROOT}" describe --tags --exact-match 2>/dev/null || true)"
if [[ -n "${GIT_HASH}" ]]; then
"${PLIST_BUDDY}" -c "Set :GitCommitHash ${GIT_HASH}" "${INFO_PLIST}" 2>/dev/null \
|| "${PLIST_BUDDY}" -c "Add :GitCommitHash string ${GIT_HASH}" "${INFO_PLIST}"
else
"${PLIST_BUDDY}" -c "Delete :GitCommitHash" "${INFO_PLIST}" 2>/dev/null || true
fi
if [[ -n "${GIT_TAG}" ]]; then
"${PLIST_BUDDY}" -c "Set :GitVersionTag ${GIT_TAG}" "${INFO_PLIST}" 2>/dev/null \
|| "${PLIST_BUDDY}" -c "Add :GitVersionTag string ${GIT_TAG}" "${INFO_PLIST}"
else
"${PLIST_BUDDY}" -c "Delete :GitVersionTag" "${INFO_PLIST}" 2>/dev/null || true
fi
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.agentbar.app
INFOPLIST_FILE: AgentBar/Info.plist
CODE_SIGN_ENTITLEMENTS: AgentBar/AgentBar.entitlements
ENABLE_HARDENED_RUNTIME: YES
COMBINE_HIDPI_IMAGES: YES
SWIFT_STRICT_CONCURRENCY: complete
CODE_SIGN_STYLE: Automatic
configs:
Debug:
SWIFT_ACTIVE_COMPILATION_CONDITIONS: "DEBUG AGENTBAR_NOTIFICATION_SOUNDS"
Release:
CODE_SIGN_STYLE: Manual
CODE_SIGN_IDENTITY: "Developer ID Application"
AgentBarTests:
type: bundle.unit-test
platform: macOS
sources:
- path: AgentBarTests
dependencies:
- target: AgentBar
- sdk: libsqlite3.tbd
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.agentbar.app.tests
GENERATE_INFOPLIST_FILE: YES
CODE_SIGN_STYLE: Automatic
configs:
Debug:
SWIFT_ACTIVE_COMPILATION_CONDITIONS: "DEBUG AGENTBAR_NOTIFICATION_SOUNDS"