1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

Add vlc to tomahawk.nsi and add update-vlc.sh for downloading and stripping vlc

This commit is contained in:
Dominik Schmidt
2011-05-25 00:24:12 +02:00
parent 86cc828378
commit 1370756e0a
2 changed files with 38 additions and 2 deletions

20
admin/win/update-vlc.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
echo "Remove old vlc dir..."
#rm -vf vlc-*.7z
rm -rf vlc/
echo "Download specified binary..."
#wget -c "http://downloads.sourceforge.net/project/vlc/1.1.9/win32/vlc-1.1.9-win32.7z?r=http%3A%2F%2Fwww.videolan.org%2Fvlc%2Fdownload-windows.html&ts=1306272584&use_mirror=leaseweb"
wget -c "http://nightlies.videolan.org/build/win32/trunk-20110524-1321/vlc-1.2.0-git-20110524-1321-win32.7z"
echo "Extract binary..."
7z x vlc-*.7z
mv -v vlc-*/ vlc/
echo "Strip unneeded plugins from vlc/plugins..."
cd vlc/plugins/
rm -rvf video_*/ gui/ */libold* */libvcd* */libdvd* */liblibass* */libx264* */libschroe* */liblibmpeg2* \
*/libstream_out_* */libmjpeg_plugin* */libh264_plugin* */libzvbi_plugin* */lib*sub*
echo "Downloaded and stripped VLC"