-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathproject.yml
More file actions
170 lines (161 loc) · 4.91 KB
/
Copy pathproject.yml
File metadata and controls
170 lines (161 loc) · 4.91 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
name: Kumo
options:
bundleIdPrefix: io.kumo
developmentLanguage: en
deploymentTarget:
macOS: "15.0"
generateEmptyDirectories: true
createIntermediateGroups: true
groupSortPosition: top
settings:
base:
SWIFT_VERSION: "6.0"
MACOSX_DEPLOYMENT_TARGET: "15.0"
SWIFT_STRICT_CONCURRENCY: complete
GCC_TREAT_WARNINGS_AS_ERRORS: NO
SWIFT_TREAT_WARNINGS_AS_ERRORS: NO
packages:
Kumo:
path: .
targets:
KumoApp:
type: application
platform: macOS
deploymentTarget: "15.0"
sources:
- path: Sources/KumoApp
- path: Resources/KumoApp/Assets.xcassets
- path: Sources/KumoCoreKit/Resources/Localizable.xcstrings
info:
path: Resources/KumoApp/Info.plist
properties:
CFBundleShortVersionString: "$(MARKETING_VERSION)"
CFBundleVersion: "$(CURRENT_PROJECT_VERSION)"
entitlements:
path: Resources/KumoApp/KumoApp.entitlements
dependencies:
- package: Kumo
product: KumoCoreKit
- target: KumoService
- target: kumo
postBuildScripts:
- name: Prepare SubStore Runtime
basedOnDependencyAnalysis: false
script: |
set -euo pipefail
bash "${SRCROOT}/Scripts/prepare_substore_runtime.sh"
SUBSTORE_NODE_SOURCE="${SRCROOT}/Sources/KumoCoreKit/Resources/SubStore/node/bin/node"
SUBSTORE_NODE_DESTINATION="${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Kumo_KumoCoreKit.bundle/Contents/Resources/SubStore/node/bin/node"
if [ -x "${SUBSTORE_NODE_SOURCE}" ]; then
mkdir -p "$(dirname "${SUBSTORE_NODE_DESTINATION}")"
cp "${SUBSTORE_NODE_SOURCE}" "${SUBSTORE_NODE_DESTINATION}"
chmod 755 "${SUBSTORE_NODE_DESTINATION}"
else
echo "warning: SubStore Node runtime not found at ${SUBSTORE_NODE_SOURCE}"
fi
- name: Copy KumoService Helper
basedOnDependencyAnalysis: false
script: |
set -euo pipefail
HELPER_SOURCE="${BUILT_PRODUCTS_DIR}/KumoService"
HELPER_DESTINATION="${TARGET_BUILD_DIR}/${WRAPPER_NAME}/Contents/MacOS/KumoService"
if [ -x "${HELPER_SOURCE}" ]; then
mkdir -p "$(dirname "${HELPER_DESTINATION}")"
cp "${HELPER_SOURCE}" "${HELPER_DESTINATION}"
chmod 755 "${HELPER_DESTINATION}"
else
echo "warning: KumoService helper not found at ${HELPER_SOURCE}"
fi
- name: Copy Kumo CLI
basedOnDependencyAnalysis: false
script: |
set -euo pipefail
CLI_SOURCE="${BUILT_PRODUCTS_DIR}/kumo"
# Use Contents/Helpers/kumo because macOS volumes are case-insensitive
# by default; Contents/MacOS/kumo would collide with the GUI main
# binary Contents/MacOS/Kumo and silently overwrite it.
CLI_DESTINATION="${TARGET_BUILD_DIR}/${WRAPPER_NAME}/Contents/Helpers/kumo"
if [ -x "${CLI_SOURCE}" ]; then
mkdir -p "$(dirname "${CLI_DESTINATION}")"
cp "${CLI_SOURCE}" "${CLI_DESTINATION}"
chmod 755 "${CLI_DESTINATION}"
else
echo "warning: Kumo CLI not found at ${CLI_SOURCE}"
fi
settings:
base:
PRODUCT_NAME: Kumo
PRODUCT_BUNDLE_IDENTIFIER: io.kumo.KumoApp
MARKETING_VERSION: "0.0.15"
CURRENT_PROJECT_VERSION: "1"
ENABLE_HARDENED_RUNTIME: YES
CODE_SIGN_STYLE: Automatic
CODE_SIGN_IDENTITY: "-"
DEVELOPMENT_TEAM: ""
INFOPLIST_FILE: Resources/KumoApp/Info.plist
CODE_SIGN_ENTITLEMENTS: Resources/KumoApp/KumoApp.entitlements
GENERATE_INFOPLIST_FILE: NO
ENABLE_USER_SCRIPT_SANDBOXING: NO
COMBINE_HIDPI_IMAGES: YES
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
kumo:
type: tool
platform: macOS
deploymentTarget: "15.0"
sources:
- path: Sources/KumoCLI
dependencies:
- package: Kumo
product: KumoCLIKit
settings:
base:
PRODUCT_NAME: kumo
SWIFT_VERSION: "6.0"
KumoService:
type: tool
platform: macOS
deploymentTarget: "15.0"
sources:
- path: Sources/KumoService
dependencies:
- package: Kumo
product: KumoCoreKit
settings:
base:
PRODUCT_NAME: KumoService
SWIFT_VERSION: "6.0"
OTHER_SWIFT_FLAGS: "$(inherited) -parse-as-library"
schemes:
KumoApp:
build:
targets:
KumoApp: all
KumoService: all
kumo: all
parallelizeBuild: true
buildImplicitDependencies: true
run:
executable: KumoApp
config: Debug
test:
config: Debug
profile:
config: Release
analyze:
config: Debug
archive:
config: Release
kumo:
build:
targets:
kumo: all
run:
executable: kumo
config: Debug
KumoService:
build:
targets:
KumoService: all
run:
executable: KumoService
config: Debug