File tree 2 files changed +23
-8
lines changed
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
58
58
popd > /dev/null
59
59
60
60
done
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 {
53
53
}
54
54
55
55
function post {
56
- case " $( uname -s ) " in
57
- Linux * )
58
- deps_count=9
56
+ case $target_os in
57
+ linux )
58
+ deps_count=7
59
59
count=$( ldd $dist /ffmpeg/bin/ffmpeg | wc -l)
60
60
;;
61
- Darwin * )
61
+ mac )
62
62
deps_count=6
63
63
count=$( otool -L $dist /ffmpeg/bin/ffmpeg | wc -l | tr -d ' ' )
64
64
;;
65
+ windows)
66
+ deps_count=17
67
+ count=$( objdump -p $dist /ffmpeg/bin/ffmpeg.exe | grep " DLL Name" | wc -l)
68
+ ;;
65
69
* )
66
70
;;
67
71
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
70
75
fi
71
- echo " Build is successful. See $dist /ffmpeg"
72
- exit 0
73
76
}
You can’t perform that action at this time.
0 commit comments