-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.yml
More file actions
98 lines (94 loc) · 3.31 KB
/
project.yml
File metadata and controls
98 lines (94 loc) · 3.31 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
name: ollmlx
options:
bundleIdPrefix: com.ollmlx
deploymentTarget:
macOS: "14.0"
xcodeVersion: "15.0"
generateEmptyDirectories: false
packages:
ollmlx-local:
path: .
targets:
OllmlxApp:
type: application
platform: macOS
sources:
- path: Sources/OllmlxApp
excludes:
- "Resources/**"
- "Assets.xcassets"
- path: Sources/OllmlxApp/Resources
type: folder
buildPhase: resources
- path: Sources/OllmlxApp/Assets.xcassets
buildPhase: resources
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.darrylmorley.ollmlx
PRODUCT_NAME: ollmlx
INFOPLIST_FILE: Info.plist
GENERATE_INFOPLIST_FILE: false
CODE_SIGN_ENTITLEMENTS: $(PROJECT_DIR)/ollmlx.entitlements
DEVELOPMENT_TEAM: M4RUJ7W6MP
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
COMBINE_HIDPI_IMAGES: true
SWIFT_VERSION: "5.0"
MACOSX_DEPLOYMENT_TARGET: "14.0"
SUPPORTED_PLATFORMS: macosx
SUPPORTS_MACCATALYST: false
CURRENT_PROJECT_VERSION: "1"
MARKETING_VERSION: "0.1.0"
LD_RUNPATH_SEARCH_PATHS: "$(inherited) @executable_path/../Frameworks"
configs:
Debug:
SWIFT_OPTIMIZATION_LEVEL: "-Onone"
SWIFT_ACTIVE_COMPILATION_CONDITIONS: "DEBUG"
CODE_SIGN_STYLE: Automatic
CODE_SIGN_IDENTITY: "-"
Release:
SWIFT_OPTIMIZATION_LEVEL: "-O"
SWIFT_COMPILATION_MODE: wholemodule
CODE_SIGN_STYLE: Manual
CODE_SIGN_IDENTITY: "Developer ID Application"
entitlements:
path: ollmlx.entitlements
properties:
com.apple.security.cs.allow-unsigned-executable-memory: true
com.apple.security.network.client: true
com.apple.security.network.server: true
com.apple.security.temporary-exception.sbpl: '(allow process-exec (literal "/bin/sh"))'
info:
path: Info.plist
properties:
CFBundleName: ollmlx
CFBundleDisplayName: ollmlx
CFBundleShortVersionString: "0.1.0"
LSUIElement: true
SUFeedURL: "https://github.com/darrylmorley/ollmlx/releases/latest/download/appcast.xml"
SUPublicEDKey: "m/WL9PKIyMMY1Nx5dL9RzE3GqA+3FlR6OiWTC1IyCfA="
SUEnableAutomaticChecks: true
preBuildScripts:
- name: Build and embed CLI
script: |
# Build the CLI binary via SPM
cd "${PROJECT_DIR}"
swift build -c release --product ollmlx 2>&1 || exit 1
CLI_BIN="$(swift build -c release --product ollmlx --show-bin-path)/ollmlx"
# Copy into the app bundle
DEST="${BUILT_PRODUCTS_DIR}/${EXECUTABLE_FOLDER_PATH}/ollmlx-cli"
mkdir -p "$(dirname "${DEST}")"
cp -f "${CLI_BIN}" "${DEST}"
# Re-sign to match the app's signing identity (codesign --force re-signs)
if [ "${CODE_SIGN_IDENTITY}" != "" ] && [ "${CODE_SIGN_IDENTITY}" != "-" ]; then
codesign --force --sign "${EXPANDED_CODE_SIGN_IDENTITY}" \
--options runtime \
--timestamp \
"${DEST}"
fi
outputFiles:
- $(BUILT_PRODUCTS_DIR)/$(EXECUTABLE_FOLDER_PATH)/ollmlx-cli
dependencies:
- package: ollmlx-local
product: OllmlxCore
- package: ollmlx-local
product: Sparkle