Skip to content

Commit b6dd2fb

Browse files
authored
Merge pull request #974 from MediaArea/mediainfo
Add mediainfo CLI to .pkg
2 parents cf99385 + 2b2987c commit b6dd2fb

1 file changed

Lines changed: 28 additions & 10 deletions

File tree

Release/Release_Mac.sh

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ rm -f "${release_directory}/vrecord.pkg"
3131

3232
rm -f "${release_directory}/FFmpeg_Bin_Latest_Mac_Static_x64.zip"
3333

34+
rm -fr "${release_directory}/mediainfo_ROOT"
35+
rm -f "${release_directory}/MediaInfo.dmg"
36+
rm -f "${release_directory}/mediainfo.pkg"
37+
3438
rm -fr "${release_directory}/mediaconch_ROOT"
3539
rm -f "${release_directory}/MediaConch.dmg"
3640
rm -f "${release_directory}/mediaconch.pkg"
@@ -69,22 +73,36 @@ pushd "${release_directory}/"
6973
popd
7074

7175
#-----------------------------------------------------------------------
72-
# Get ffmpeg-ma
76+
# Get ffmpeg-ma
7377
pushd "${release_directory}/"
7478
curl -LO "https://mediaarea.net/download/snapshots/binary/ffmpeg/latest/FFmpeg_Bin_Latest_Mac_Static_x64.zip"
7579
unzip -d vrecord_ROOT/usr/local/lib/vrecord -x FFmpeg_Bin_Latest_Mac_Static_x64.zip bin/ffmpeg bin/ffplay
7680
mv vrecord_ROOT/usr/local/lib/vrecord/bin/ffmpeg vrecord_ROOT/usr/local/lib/vrecord/bin/ffmpeg-ma
77-
mv vrecord_ROOT/usr/local/lib/vrecord/bin/ffplay vrecord_ROOT/usr/local/lib/vrecord//bin/ffplay-ma
81+
mv vrecord_ROOT/usr/local/lib/vrecord/bin/ffplay vrecord_ROOT/usr/local/lib/vrecord//bin/ffplay-ma
7882
popd
7983

8084

8185
#-----------------------------------------------------------------------
82-
# Get MediaConch CLI
86+
# Get MediaInfo CLI
87+
pushd "${release_directory}/"
88+
mi_version=$(curl -Ls https://mediaarea.net/download/binary/mediainfo | grep -Eo 'href="[0-9.]+/"' | head -n1 | grep -Eo '[0-9.]+')
89+
curl -L "https://mediaarea.net/download/binary/mediainfo/${mi_version}/MediaInfo_CLI_${mi_version}_Mac.dmg" -o MediaInfo.dmg
90+
91+
hdiutil attach -noverify MediaInfo.dmg
92+
cp "/Volumes/MediaInfo/mediainfo.pkg" .
93+
hdiutil detach "/Volumes/MediaInfo"
94+
95+
pkgutil --expand-full mediainfo.pkg mediainfo_ROOT
96+
cp -a mediainfo_ROOT/Payload/usr/local/bin/mediainfo vrecord_ROOT/usr/local/lib/vrecord/bin
97+
popd
98+
99+
#-----------------------------------------------------------------------
100+
# Get MediaConch CLI
83101
pushd "${release_directory}/"
84102
mc_version=$(curl -Ls https://mediaarea.net/download/binary/mediaconch | grep -Eo 'href="[0-9.]+/"' | head -n1 | grep -Eo '[0-9.]+')
85103
curl -L "https://mediaarea.net/download/binary/mediaconch/${mc_version}/MediaConch_CLI_${mc_version}_Mac.dmg" -o MediaConch.dmg
86104

87-
hdiutil attach -noverify mediaconch.dmg
105+
hdiutil attach -noverify MediaConch.dmg
88106
cp "/Volumes/MediaConch/mediaconch.pkg" .
89107
hdiutil detach "/Volumes/MediaConch"
90108

@@ -93,7 +111,7 @@ pushd "${release_directory}/"
93111
popd
94112

95113
#-----------------------------------------------------------------------
96-
# Get QCTools CLI
114+
# Get QCTools CLI
97115
pushd "${release_directory}/"
98116
qc_version=$(curl -Ls https://mediaarea.net/download/binary/qcli | grep -Eo 'href="[0-9.]+/"' | head -n1 | grep -Eo '[0-9.]+')
99117
curl -L "https://mediaarea.net/download/binary/qcli/${qc_version}/qcli_${qc_version}_mac.dmg" -o qcli.dmg
@@ -107,7 +125,7 @@ pushd "${release_directory}/"
107125
popd
108126

109127
#-----------------------------------------------------------------------
110-
# Get dvrescue CLI
128+
# Get dvrescue CLI
111129
pushd "${release_directory}/"
112130
dv_version=$(curl -Ls https://mediaarea.net/download/binary/dvrescue | grep -Eo 'href="[0-9.]+/"' | head -n1 | grep -Eo '[0-9.]+')
113131
curl -L "https://mediaarea.net/download/binary/dvrescue/${dv_version}/dvrescue_CLI_${dv_version}_Mac.dmg" -o dvrescue.dmg
@@ -121,15 +139,15 @@ pushd "${release_directory}/"
121139
popd
122140

123141
#-----------------------------------------------------------------------
124-
# Get gnuplot
142+
# Get gnuplot
125143
pushd "${release_directory}/"
126-
curl -L https://csml.northwestern.edu/Download/Gnuplot/gnuplot-6.0.3-qt5-universal.pkg -o gnuplot-qt5-universal.pkg
144+
curl -L https://csml.northwestern.edu/Download/Gnuplot/gnuplot-6.0.3-qt5-universal.pkg -o gnuplot-qt5-universal.pkg
127145
pkgutil --expand-full gnuplot-qt5-universal.pkg gnuplot_ROOT
128146
cp -a gnuplot_ROOT/gnuplot-package-*-qt5-universal.pkg/Payload/* vrecord_ROOT/usr/local/lib/vrecord
129147
popd
130148

131149
#-----------------------------------------------------------------------
132-
# Get MKVToolNix
150+
# Get MKVToolNix
133151
pushd "${release_directory}/"
134152
curl -L https://mkvtoolnix.download/macos/MKVToolNix-42.0.0.dmg -o MKVToolNix-42.0.0.dmg
135153

@@ -228,7 +246,7 @@ pushd "${release_directory}/"
228246
cp -a ../vplay vrecord_ROOT/usr/local/bin
229247
cp -a ../vrecord vrecord_ROOT/usr/local/bin
230248

231-
cp -a ../vtest.1 vrecord_ROOT/usr/local/share/man/man1
249+
cp -a ../vtest.1 vrecord_ROOT/usr/local/share/man/man1
232250
cp -a ../vrecord.1 vrecord_ROOT/usr/local/share/man/man1
233251

234252
cp -a ../Resources/audio_mode.gif vrecord_ROOT/usr/local/share/vrecord/Resources

0 commit comments

Comments
 (0)