Skip to content

Commit

Permalink
migrate to customize ffmpeg binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Predidit committed Aug 23, 2024
1 parent e9ddd04 commit d7fb20d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,16 @@
distribution: 'temurin'
java-version: '18'
- run: flutter pub get
- run: flutter build windows
- run: flutter build windows
- name: Download FFmpeg Assets
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: 'Predidit/avbuild'
version: 'tags/1.0.0'
file: 'ffmpeg_windows_x64.zip'
token: ${{ secrets.GITHUB_TOKEN }}
- run: Remove-Item -Path build/windows/x64/runner/Release/ffmpeg-7.dll -Force
- run: Expand-Archive -LiteralPath ffmpeg_windows_x64.zip -DestinationPath build/windows/x64/runner/Release
- run: Compress-Archive build/windows/x64/runner/Release/* Kazumi_windows_canary.zip
- name: Upload windows outputs
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -159,6 +168,15 @@
- name: Build Flutter for Linux
run: flutter build linux
shell: bash
- name: Download FFmpeg Assets
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: 'Predidit/avbuild'
version: 'tags/1.0.0'
file: 'ffmpeg_linux_amd64.zip'
token: ${{ secrets.GITHUB_TOKEN }}
- run: rm -f build/linux/x64/release/bundle/lib/libffmpeg.so.7
- run: unzip ffmpeg_linux_amd64.zip -d build/linux/x64/release/bundle/lib
- name: Package linux build output
run: |
# Tarball package
Expand Down
20 changes: 19 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,16 @@
distribution: 'temurin'
java-version: '18'
- run: flutter pub get
- run: flutter build windows
- run: flutter build windows
- name: Download FFmpeg Assets
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: 'Predidit/avbuild'
version: 'tags/1.0.0'
file: 'ffmpeg_windows_x64.zip'
token: ${{ secrets.GITHUB_TOKEN }}
- run: Remove-Item -Path build/windows/x64/runner/Release/ffmpeg-7.dll -Force
- run: Expand-Archive -LiteralPath ffmpeg_windows_x64.zip -DestinationPath build/windows/x64/runner/Release
- run: Compress-Archive build/windows/x64/runner/Release/* Kazumi_windows_${env:tag}.zip
- name: Upload windows outputs
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -125,6 +134,15 @@
- name: Build Flutter for Linux
run: flutter build linux
shell: bash
- name: Download FFmpeg Assets
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: 'Predidit/avbuild'
version: 'tags/1.0.0'
file: 'ffmpeg_linux_amd64.zip'
token: ${{ secrets.GITHUB_TOKEN }}
- run: rm -f build/linux/x64/release/bundle/lib/libffmpeg.so.7
- run: unzip ffmpeg_linux_amd64.zip -d build/linux/x64/release/bundle/lib
- name: Package linux build output
run: |
# Tarball package
Expand Down

0 comments on commit d7fb20d

Please sign in to comment.