Skip to content

Commit 4403bca

Browse files
committed
feat: Add FFmpeg build dependencies installation step and update paths for macOS DMG signing and notarization
1 parent b40e5c0 commit 4403bca

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ jobs:
9999
cd frontend
100100
bun install
101101
102+
- name: Install FFmpeg build dependencies
103+
if: matrix.variant.tags == 'embed_ffmpeg'
104+
run: |
105+
brew install nasm yasm pkg-config x264 x265 libvpx aom opus libvorbis
106+
102107
- name: Download FFmpeg binaries for embedding
103108
if: matrix.variant.tags == 'embed_ffmpeg'
104109
run: |
@@ -189,27 +194,27 @@ jobs:
189194
env:
190195
MACOS_SIGNING_IDENTITY: ${{ secrets.MACOS_SIGNING_IDENTITY }}
191196
run: |
192-
codesign --force --sign "$MACOS_SIGNING_IDENTITY" --timestamp build/bin/Zenfile-${{ matrix.platform.name }}${{ matrix.variant.suffix }}-${{ needs.update-version.outputs.version }}.dmg
197+
codesign --force --sign "$MACOS_SIGNING_IDENTITY" --timestamp build/darwin/Zenfile-${{ matrix.platform.name }}${{ matrix.variant.suffix }}-${{ needs.update-version.outputs.version }}.dmg
193198
194199
- name: Notarize the DMG
195200
env:
196201
APPLE_ID: ${{ secrets.APPLE_ID }}
197202
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
198203
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
199204
run: |
200-
xcrun notarytool submit build/bin/Zenfile-${{ matrix.platform.name }}${{ matrix.variant.suffix }}-${{ needs.update-version.outputs.version }}.dmg \
205+
xcrun notarytool submit build/darwin/Zenfile-${{ matrix.platform.name }}${{ matrix.variant.suffix }}-${{ needs.update-version.outputs.version }}.dmg \
201206
--apple-id "$APPLE_ID" \
202207
--password "$APPLE_ID_PASSWORD" \
203208
--team-id "$APPLE_TEAM_ID" \
204209
--wait
205210
206-
xcrun stapler staple build/bin/Zenfile-${{ matrix.platform.name }}${{ matrix.variant.suffix }}-${{ needs.update-version.outputs.version }}.dmg
211+
xcrun stapler staple build/darwin/Zenfile-${{ matrix.platform.name }}${{ matrix.variant.suffix }}-${{ needs.update-version.outputs.version }}.dmg
207212
208213
- name: Upload macOS artifact
209214
uses: actions/upload-artifact@v4
210215
with:
211216
name: Zenfile-${{ matrix.platform.name }}${{ matrix.variant.suffix }}
212-
path: build/bin/Zenfile-${{ matrix.platform.name }}${{ matrix.variant.suffix }}-${{ needs.update-version.outputs.version }}.dmg
217+
path: build/darwin/Zenfile-${{ matrix.platform.name }}${{ matrix.variant.suffix }}-${{ needs.update-version.outputs.version }}.dmg
213218

214219
upload-release-assets:
215220
needs: [update-version, build-macos]

0 commit comments

Comments
 (0)