Skip to content

Commit 120c88e

Browse files
claudeleptos-null
andcommitted
Add macOS app to release GitHub Action workflow
Co-authored-by: Leptos <leptos.0.null@gmail.com>
1 parent 5162fcb commit 120c88e

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,22 @@ jobs:
3333
mv ios_archive.xcarchive/Products/Applications Payload
3434
zip -yqr HeaderViewer.ipa Payload
3535
36+
- name: Archive macOS app
37+
run: |
38+
# ad-hoc sign ("-")
39+
# 1. since Apple silicon won't run unsigned code
40+
# 2. so the entitlements are embedded
41+
xcodebuild \
42+
CODE_SIGN_IDENTITY="-" \
43+
archive -scheme HeaderViewer \
44+
-destination 'generic/platform=macOS' \
45+
-archivePath macos_archive \
46+
-quiet
47+
48+
- name: Package macOS app
49+
run: |
50+
ditto -c -k --keepParent macos_archive.xcarchive/Products/Applications/HeaderViewer.app HeaderViewer-macOS.zip
51+
3652
- name: Publish release
3753
env:
3854
GH_TOKEN: ${{ github.token }}
@@ -41,4 +57,4 @@ jobs:
4157
gh release create "${TAG}" --draft \
4258
--title "Automatic Release" \
4359
--target "${GITHUB_SHA}" \
44-
HeaderViewer.ipa
60+
HeaderViewer.ipa HeaderViewer-macOS.zip

0 commit comments

Comments
 (0)