Skip to content

Commit a466014

Browse files
committed
更新 Build FFmpeg for Windows.yml
1 parent 955aff2 commit a466014

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/Build FFmpeg for Windows.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ jobs:
5555
--enable-demuxer=webvtt \
5656
--enable-muxer=srt \
5757
--enable-protocol=file \
58-
--enable-iconv
5958
6059
- name: Build and install FFmpeg
6160
shell: msys2 {0}
@@ -64,12 +63,18 @@ jobs:
6463
make
6564
make install
6665
67-
- name: Package FFmpeg
66+
- name: Copy dependencies
6867
shell: msys2 {0}
6968
run: |
7069
mkdir -p /usr/local/bin/ffmpeg
71-
mv /usr/local/bin/ffmpeg.exe /usr/local/bin/ffmpeg/
72-
70+
cp /usr/local/bin/ffmpeg.exe /usr/local/bin/ffmpeg/
71+
cp /mingw64/bin/libbz2-1.dll /usr/local/bin/ffmpeg/
72+
cp /mingw64/bin/libiconv-2.dll /usr/local/bin/ffmpeg/
73+
cp /mingw64/bin/liblzma-5.dll /usr/local/bin/ffmpeg/
74+
cp /mingw64/bin/libwinpthread-1.dll /usr/local/bin/ffmpeg/
75+
cp /mingw64/bin/zlib1.dll /usr/local/bin/ffmpeg/
76+
77+
7378

7479
- name: Upload artifact
7580
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)