File tree Expand file tree Collapse file tree 2 files changed +23
-8
lines changed
Expand file tree Collapse file tree 2 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -58,3 +58,15 @@ for mod in $mods; do
5858 popd > /dev/null
5959
6060done
61+
62+ echo " Packaging…"
63+
64+ cd $dist_name
65+ tmpdir=ffmpeg-$target
66+ rm -rf $tmpdir
67+ mkdir -p $tmpdir /presets
68+ cp $dist /ffmpeg/bin/* $tmpdir
69+ cp $dist /ffmpeg/share/ffmpeg/* .ffpreset $tmpdir /presets
70+ tar -cjvf ffmpeg-$target .tar.bz2 $tmpdir
71+ rm -rf $tmpdir
72+ cd ..
Original file line number Diff line number Diff line change @@ -53,21 +53,24 @@ function build {
5353 }
5454
5555 function post {
56- case " $( uname -s ) " in
57- Linux * )
58- deps_count=9
56+ case $target_os in
57+ linux )
58+ deps_count=7
5959 count=$( ldd $dist /ffmpeg/bin/ffmpeg | wc -l)
6060 ;;
61- Darwin * )
61+ mac )
6262 deps_count=6
6363 count=$( otool -L $dist /ffmpeg/bin/ffmpeg | wc -l | tr -d ' ' )
6464 ;;
65+ windows)
66+ deps_count=17
67+ count=$( objdump -p $dist /ffmpeg/bin/ffmpeg.exe | grep " DLL Name" | wc -l)
68+ ;;
6569 * )
6670 ;;
6771 esac
68- if [ ! $count -eq $deps_count ]; then
69- echo " Warning: unexpected amount of dependencies."
72+ if [[ ! $count -eq $deps_count ]]; then
73+ echo " Error: unexpected amount of dependencies."
74+ exit 1
7075 fi
71- echo " Build is successful. See $dist /ffmpeg"
72- exit 0
7376 }
You can’t perform that action at this time.
0 commit comments