Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CHKZL committed Dec 14, 2024
1 parent 311218d commit aab74f8
Showing 1 changed file with 40 additions and 9 deletions.
49 changes: 40 additions & 9 deletions .github/workflows/DDTV_Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,22 @@ jobs:
run: cp -r Static Server/build_output/Static


- name: Copy ffmpeg.exe (Windows)
- name: Download ffmpeg.exe (Windows)
if: matrix.os == 'windows-latest'
run: |
mkdir Server/build_output/Plugins/Plugins/ffmpeg
copy Server/Plugins/ffmpeg/ffmpeg.exe Server/build_output/Plugins/Plugins/ffmpeg/ffmpeg.exe
curl -L -o ffmpeg.zip https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip
tar -xf ffmpeg.zip --directory Server/build_output/Plugins/Plugins/ffmpeg --strip-components=1 ffmpeg-master-latest-win64-gpl/bin/ffmpeg.exe
- name: Verify ffmpeg.exe
if: matrix.os == 'windows-latest'
run: |
if [ -f "Server/build_output/Plugins/Plugins/ffmpeg/ffmpeg.exe" ]; then
echo "ffmpeg.exe downloaded and extracted successfully."
else
echo "Failed to download and extract ffmpeg.exe."
exit 1
fi

- name: Move all files to bin folder and create shortcut (Linux or macOS)
if: runner.os != 'Windows'
Expand Down Expand Up @@ -350,11 +361,21 @@ jobs:
- name: Copy Static folder to build_output
run: cp -r Static Desktop/build_output/Static

- name: Copy ffmpeg.exe (Windows)
- name: Download ffmpeg.exe (Windows)
if: matrix.os == 'windows-latest'
run: |
curl -L -o ffmpeg.zip https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip
tar -xf ffmpeg.zip --directory Server/build_output/Plugins/Plugins/ffmpeg --strip-components=1 ffmpeg-master-latest-win64-gpl/bin/ffmpeg.exe
- name: Verify ffmpeg.exe
if: matrix.os == 'windows-latest'
run: |
mkdir Desktop\\build_output\\Plugins\\ffmpeg
copy Desktop\\Plugins\\ffmpeg\\ffmpeg.exe Desktop\\build_output\\Plugins\\ffmpeg\\ffmpeg.exe
if [ -f "Server/build_output/Plugins/Plugins/ffmpeg/ffmpeg.exe" ]; then
echo "ffmpeg.exe downloaded and extracted successfully."
else
echo "Failed to download and extract ffmpeg.exe."
exit 1
fi
- name: Copy VLC (Windows)
if: runner.os == 'Windows'
Expand Down Expand Up @@ -498,11 +519,21 @@ jobs:
- name: Copy Static folder to build_output
run: cp -r Static Client/build_output/Static

- name: Copy ffmpeg.exe (Windows)
- name: Download ffmpeg.exe (Windows)
if: matrix.os == 'windows-latest'
run: |
curl -L -o ffmpeg.zip https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip
tar -xf ffmpeg.zip --directory Server/build_output/Plugins/Plugins/ffmpeg --strip-components=1 ffmpeg-master-latest-win64-gpl/bin/ffmpeg.exe
- name: Verify ffmpeg.exe
if: matrix.os == 'windows-latest'
run: |
mkdir Client\\build_output\\Plugins\\ffmpeg
copy Client\\Plugins\\ffmpeg\\ffmpeg.exe Client\\build_output\\Plugins\\ffmpeg\\ffmpeg.exe
if [ -f "Server/build_output/Plugins/Plugins/ffmpeg/ffmpeg.exe" ]; then
echo "ffmpeg.exe downloaded and extracted successfully."
else
echo "Failed to download and extract ffmpeg.exe."
exit 1
fi
- name: Move all files to bin folder and create shortcut (Windows)
if: runner.os == 'Windows'
Expand Down

0 comments on commit aab74f8

Please sign in to comment.