diff --git a/lib/native/linux-amd64/libmediainfo.so b/lib/native/linux-amd64/libmediainfo.so index 33f2ff44..a4edabec 100644 Binary files a/lib/native/linux-amd64/libmediainfo.so and b/lib/native/linux-amd64/libmediainfo.so differ diff --git a/lib/native/linux-i686/libmediainfo.so b/lib/native/linux-i686/libmediainfo.so index 6e2cdd74..89efbf7f 100644 Binary files a/lib/native/linux-i686/libmediainfo.so and b/lib/native/linux-i686/libmediainfo.so differ diff --git a/lib/native/mac-x86_64/libmediainfo.dylib b/lib/native/mac-x86_64/libmediainfo.dylib index c783903e..a80d1fff 100755 Binary files a/lib/native/mac-x86_64/libmediainfo.dylib and b/lib/native/mac-x86_64/libmediainfo.dylib differ diff --git a/lib/native/update-mediainfo.sh b/lib/native/update-mediainfo.sh new file mode 100755 index 00000000..ecc043be --- /dev/null +++ b/lib/native/update-mediainfo.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +MEDIAINFO_VERSION="0.7.92" +ZEN_VERSION="0.4.34" + + +# Download and extract archives +mkdir -p "Staging" && cd "Staging" + +curl -O "https://mediaarea.net/download/binary/libmediainfo0/${MEDIAINFO_VERSION}/MediaInfo_DLL_${MEDIAINFO_VERSION}_Mac_i386+x86_64.tar.bz2" +curl -O "https://mediaarea.net/download/binary/libmediainfo0/${MEDIAINFO_VERSION}/MediaInfo_DLL_${MEDIAINFO_VERSION}_Windows_x64_WithoutInstaller.7z" +curl -O "https://mediaarea.net/download/binary/libmediainfo0/${MEDIAINFO_VERSION}/MediaInfo_DLL_${MEDIAINFO_VERSION}_Windows_i386_WithoutInstaller.7z" +curl -O "https://mediaarea.net/download/binary/libmediainfo0/${MEDIAINFO_VERSION}/libmediainfo0_${MEDIAINFO_VERSION}-1_amd64.Debian_8.0.deb" +curl -O "https://mediaarea.net/download/binary/libmediainfo0/${MEDIAINFO_VERSION}/libmediainfo0_${MEDIAINFO_VERSION}-1_i386.Debian_8.0.deb" +curl -O "https://mediaarea.net/download/binary/libzen0/${ZEN_VERSION}/libzen0_${ZEN_VERSION}-1_amd64.Debian_8.0.deb" +curl -O "https://mediaarea.net/download/binary/libzen0/${ZEN_VERSION}/libzen0_${ZEN_VERSION}-1_i386.Debian_8.0.deb" + +for FILE in *.tar.* *.deb *.7z + do mkdir -p "${FILE%.*}" && 7z x "$FILE" -aoa -o"${FILE%.*}" +done + +for FILE in */*.tar + do mkdir -p "${FILE%.*}" && 7z x "$FILE" -aoa -o"${FILE%.*}" +done + + +# Copy native libraries into repository +cd .. + +cp Staging/*Mac*x86_64*/*/*/libmediainfo.0.dylib mac-x86_64/libmediainfo.dylib +cp Staging/*Windows*x64*/MediaInfo.dll win32-x64/MediaInfo.dll +cp Staging/*Windows*i386*/MediaInfo.dll win32-x86/MediaInfo.dll +cp Staging/*/data/usr/lib/x86_64-linux-gnu/libmediainfo.so.0.0.0 linux-amd64/libmediainfo.so +cp Staging/*/data/usr/lib/i386-linux-gnu/libmediainfo.so.0.0.0 linux-i686/libmediainfo.so +cp Staging/*/data/usr/lib/x86_64-linux-gnu/libzen.so.0.0.0 linux-amd64/libzen.so +cp Staging/*/data/usr/lib/i386-linux-gnu/libzen.so.0.0.0 linux-i686/libzen.so diff --git a/lib/native/win32-x64/MediaInfo.dll b/lib/native/win32-x64/MediaInfo.dll index 8012e433..49d54650 100644 Binary files a/lib/native/win32-x64/MediaInfo.dll and b/lib/native/win32-x64/MediaInfo.dll differ diff --git a/lib/native/win32-x86/MediaInfo.dll b/lib/native/win32-x86/MediaInfo.dll index 36a9191a..3b722a24 100644 Binary files a/lib/native/win32-x86/MediaInfo.dll and b/lib/native/win32-x86/MediaInfo.dll differ