Skip to content

Commit 173e84e

Browse files
Add DMG packaging to release workflow.
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 1fcf223 commit 173e84e

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,21 @@ jobs:
145145
ditto -c -k --sequesterRsrc --keepParent FluffyFlash.app "$ARTIFACT_DIR/${NAME}.zip"
146146
shasum -a 256 "$ARTIFACT_DIR/${NAME}.zip" | tee "$ARTIFACT_DIR/${NAME}.zip.sha256"
147147
148+
- name: Package .app into .dmg
149+
working-directory: FluffyFlash/build/Build/Products/Release
150+
run: |
151+
mkdir -p "$ARTIFACT_DIR"
152+
NAME="FluffyFlash-${GITHUB_REF_NAME:-dev}"
153+
DMG="$ARTIFACT_DIR/${NAME}.dmg"
154+
rm -f "$DMG"
155+
hdiutil create \
156+
-volname "Fluffy Flash" \
157+
-srcfolder FluffyFlash.app \
158+
-ov \
159+
-format UDZO \
160+
"$DMG"
161+
shasum -a 256 "$DMG" | tee "$ARTIFACT_DIR/${NAME}.dmg.sha256"
162+
148163
- name: Security scan (Trivy on built .app)
149164
uses: aquasecurity/trivy-action@v0.36.0
150165
with:

0 commit comments

Comments
 (0)