Skip to content

Commit

Permalink
fix: make mac install ffmpeg 6 and download to right path
Browse files Browse the repository at this point in the history
  • Loading branch information
Sn0wCrack authored Oct 4, 2023
1 parent 3cdfffd commit 313e476
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: Install Dependencies
run: |
HOMEBREW_NO_AUTO_UPDATE=1 brew install opus [email protected] ffmpeg@5 nasm sdl2 protobuf
HOMEBREW_NO_AUTO_UPDATE=1 brew install opus [email protected] ffmpeg@6 nasm sdl2 protobuf
- name: Setup Python
id: python
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
-DCHIAKI_ENABLE_CLI=OFF \
-DCHIAKI_GUI_ENABLE_SDL_GAMECONTROLLER=ON \
-DPYTHON_EXECUTABLE="${{ env.pythonLocation }}\python" \
-DCMAKE_PREFIX_PATH="/usr/local/opt/[email protected];/usr/local/opt/ffmpeg@5;${{ env.Qt6_Dir }}"
-DCMAKE_PREFIX_PATH="/usr/local/opt/[email protected];/usr/local/opt/ffmpeg@6;${{ env.Qt6_Dir }}"
- name: Build Chiaki
working-directory: chiaki-qt6
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
- name: Setup ffmpeg
run: |
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -UseBasicParsing -Uri "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n6.0-latest-win64-lgpl-shared-6.0.zip" -OutFile ".\ffmpeg-n5.1-latest-win64-lgpl-shared-5.1.zip"
Invoke-WebRequest -UseBasicParsing -Uri "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n6.0-latest-win64-lgpl-shared-6.0.zip" -OutFile ".\ffmpeg-n6.0-latest-win64-lgpl-shared-6.0.zip"
Expand-Archive -LiteralPath "ffmpeg-n6.0-latest-win64-lgpl-shared-6.0.zip" -DestinationPath "."
Rename-Item "ffmpeg-n6.0-latest-win64-lgpl-shared-6.0.zip" "ffmpeg"
Write-Output "${{ github.workspace }}\ffmpeg\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
Expand All @@ -124,16 +124,16 @@ jobs:
- name: Setup OpenSSL
run: |
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -UseBasicParsing -Uri "https://download.firedaemon.com/FireDaemon-OpenSSL/openssl-1.1.1u.zip" -OutFile ".\openssl-1.1.1u.zip"
Expand-Archive -LiteralPath "openssl-1.1.1u.zip" -DestinationPath "."
Invoke-WebRequest -UseBasicParsing -Uri "https://download.firedaemon.com/FireDaemon-OpenSSL/openssl-1.1.1w.zip" -OutFile ".\openssl-1.1.1w.zip"
Expand-Archive -LiteralPath "openssl-1.1.1w.zip" -DestinationPath "."
Rename-Item "openssl-1.1" "openssl"
Write-Output "${{ github.workspace }}\openssl" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
- name: Setup SDL2
run: |
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -UseBasicParsing -Uri "https://www.libsdl.org/release/SDL2-devel-2.28.1-VC.zip" -OutFile ".\SDL2-devel-2.28.1-VC.zip"
Expand-Archive -LiteralPath "SDL2-devel-2.28.1-VC.zip" -DestinationPath "."
Invoke-WebRequest -UseBasicParsing -Uri "https://www.libsdl.org/release/SDL2-devel-2.28.3-VC.zip" -OutFile ".\SDL2-devel-2.28.3-VC.zip"
Expand-Archive -LiteralPath "SDL2-devel-2.28.3-VC.zip" -DestinationPath "."
Rename-Item "SDL2-2.28.1" "SDL2"
Write-Output "SDL2_DIR=${{ github.workspace }}\SDL2" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
Set-Content -Path "${{ github.workspace }}\SDL2\sdl2-config.cmake" -Value 'set(TARGET_NAME SDL2::SDL2)'
Expand Down

0 comments on commit 313e476

Please sign in to comment.