Skip to content

Commit 80f7ae0

Browse files
committed
GHA Apple - try to fix version string usage.
1 parent 483a317 commit 80f7ae0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/apple.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
run: |
163163
set -x
164164
# Get the version number from the framework's Info.plist
165-
VERSION=$(plutil -extract CFBundleShortVersionString xml1 -o - install/Frameworks/lsl.framework/Versions/A/Resources/Info.plist | sed -n 's/.*<string>\(.*\)<\/string>.*/\1/p')
165+
VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" install/Frameworks/lsl.framework/Versions/A/Resources/Info.plist)
166166
echo "LSL_VERSION=$VERSION" >> $GITHUB_ENV
167167
168168
mkdir -p package
@@ -193,14 +193,14 @@ jobs:
193193
echo "✅ Verifying binary signatures in XCFramework..."
194194
codesign -vvv --verify --deep --strict lsl.xcframework
195195
196-
ditto -c -k --sequesterRsrc --keepParent lsl.xcframework lsl.xcframework.zip
196+
ditto -c -k --sequesterRsrc --keepParent lsl.xcframework lsl.xcframework.${LSL_VERSION}.zip
197197
198198
- name: upload artifacts
199199
uses: actions/upload-artifact@v4
200200
with:
201201
name: mac-packages
202202
path: |
203-
lsl.xcframework.zip
203+
lsl.xcframework.*.zip
204204
package/
205205
206206
- name: upload to release page

0 commit comments

Comments
 (0)