mirror of
https://github.com/alexkay/spek.git
synced 2025-06-12 13:22:57 +03:00
[win] Replace GStreamer with FFmpeg in the installer
This commit is contained in:
parent
ec699bd728
commit
72039afa66
@ -35,8 +35,8 @@ urls=(\
|
|||||||
"http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng_1.4.0-1_win32.zip" \
|
"http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng_1.4.0-1_win32.zip" \
|
||||||
"http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libxml2_2.7.7-1_win32.zip" \
|
"http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libxml2_2.7.7-1_win32.zip" \
|
||||||
"http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib_1.2.4-2_win32.zip" \
|
"http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib_1.2.4-2_win32.zip" \
|
||||||
# GStreamer merge modules
|
# FFmpeg
|
||||||
"http://ossbuild.googlecode.com/files/GStreamer-WinBuilds-Merge-Modules-x86.zip"
|
"http://ffmpeg.arrozcru.org/autobuilds/ffmpeg/mingw32/shared/ffmpeg-r24135-swscale-r31628-mingw32-shared.7z"
|
||||||
)
|
)
|
||||||
|
|
||||||
for url in ${urls[*]}
|
for url in ${urls[*]}
|
||||||
@ -54,38 +54,17 @@ done
|
|||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
rm -fr share/locale
|
rm -fr share/locale
|
||||||
mv x86-OSSBuild-GStreamer-Dependencies-GPL.msm ..
|
rm -fr doc
|
||||||
mv x86-OSSBuild-GStreamer-Libraries.msm ..
|
rm -fr presets
|
||||||
mv x86-OSSBuild-GStreamer-Plugins-Bad-GPL.msm ..
|
rm *.txt
|
||||||
mv x86-OSSBuild-GStreamer-Plugins-Base.msm ..
|
rm bin/avdevice* bin/avfilter* bin/swscale* bin/ff*.exe
|
||||||
mv x86-OSSBuild-GStreamer-Plugins-FFmpeg-GPL.msm ..
|
mv licenses share/
|
||||||
mv x86-OSSBuild-GStreamer-Plugins-Good.msm ..
|
|
||||||
mv x86-OSSBuild-GStreamer-Plugins-Ugly-GPL.msm ..
|
|
||||||
rm *.msm
|
|
||||||
|
|
||||||
# Set the default GTK theme
|
# Set the default GTK theme
|
||||||
echo "gtk-theme-name = \"MS-Windows\"" > etc/gtk-2.0/gtkrc
|
echo "gtk-theme-name = \"MS-Windows\"" > etc/gtk-2.0/gtkrc
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Extract files from x86-OSSBuild-GStreamer-Dependencies-GPL.msm
|
|
||||||
mkdir deps
|
|
||||||
"$WIX_PATH"/dark x86-OSSBuild-GStreamer-Dependencies-GPL.msm -o deps/deps.wxs -x deps
|
|
||||||
|
|
||||||
for line in $(grep "<File" deps/deps.wxs | sed -e "s/.* Name=\"\([^\"]*\)\".* Source=\"\([^\"]*\)\".*/\1;\2/g"); do
|
|
||||||
line=${line//\\/\/}
|
|
||||||
name=${line%;*}
|
|
||||||
src=${line#*;}
|
|
||||||
dst="Spek/bin/$name"
|
|
||||||
# Move but don't overwrite the existing file
|
|
||||||
if [ ! -f "$dst" ] ; then
|
|
||||||
mv -v "$src" "$dst"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# Create a zip archive
|
|
||||||
"$SZ_PATH"/7z a spek.zip Spek
|
|
||||||
|
|
||||||
# Generate a wxs for files in Spek
|
# Generate a wxs for files in Spek
|
||||||
"$WIX_PATH"/heat dir Spek -gg -ke -srd -cg Files -dr INSTALLLOCATION -template fragment -o files.wxs
|
"$WIX_PATH"/heat dir Spek -gg -ke -srd -cg Files -dr INSTALLLOCATION -template fragment -o files.wxs
|
||||||
|
|
||||||
@ -94,8 +73,13 @@ done
|
|||||||
"$WIX_PATH"/light -ext WixUIExtension.dll -b Spek spek.wixobj files.wixobj -o spek.msi
|
"$WIX_PATH"/light -ext WixUIExtension.dll -b Spek spek.wixobj files.wixobj -o spek.msi
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
rm -fr deps
|
rm *.res
|
||||||
rm *.msm
|
|
||||||
rm *.wixobj
|
rm *.wixobj
|
||||||
|
rm *.wixpdb
|
||||||
|
|
||||||
|
# Create a zip archive
|
||||||
|
cp LICENSE.rtf Spek/
|
||||||
|
cp spek.ico Spek/
|
||||||
|
"$SZ_PATH"/7z a spek.zip Spek
|
||||||
|
|
||||||
popd
|
popd
|
18
win/spek.wxs
18
win/spek.wxs
@ -77,18 +77,6 @@
|
|||||||
<RegistryValue Root="HKLM" Key="SOFTWARE\Classes\.$(var.ext)\OpenWithProgids" Name="Spek.Audio" Value="" Type="string" />
|
<RegistryValue Root="HKLM" Key="SOFTWARE\Classes\.$(var.ext)\OpenWithProgids" Name="Spek.Audio" Value="" Type="string" />
|
||||||
<?endforeach?>
|
<?endforeach?>
|
||||||
</Component>
|
</Component>
|
||||||
<Directory Id="bin" Name="bin">
|
|
||||||
<Merge Id="GStreamer-Libraries" Language="1033" SourceFile="x86-OSSBuild-GStreamer-Libraries.msm" DiskId="1" />
|
|
||||||
</Directory>
|
|
||||||
<Directory Id="lib" Name="lib">
|
|
||||||
<Directory Id="gstreamer_0.10" Name="gstreamer-0.10">
|
|
||||||
<Merge Id="GStreamer-Plugins-Bad-GPL" Language="1033" SourceFile="x86-OSSBuild-GStreamer-Plugins-Bad-GPL.msm" DiskId="1" />
|
|
||||||
<Merge Id="GStreamer-Plugins-Base" Language="1033" SourceFile="x86-OSSBuild-GStreamer-Plugins-Base.msm" DiskId="1" />
|
|
||||||
<Merge Id="GStreamer-Plugins-FFmpeg-GPL" Language="1033" SourceFile="x86-OSSBuild-GStreamer-Plugins-FFmpeg-GPL.msm" DiskId="1" />
|
|
||||||
<Merge Id="GStreamer-Plugins-Good" Language="1033" SourceFile="x86-OSSBuild-GStreamer-Plugins-Good.msm" DiskId="1" />
|
|
||||||
<Merge Id="GStreamer-Plugins-Ugly-GPL" Language="1033" SourceFile="x86-OSSBuild-GStreamer-Plugins-Ugly-GPL.msm" DiskId="1" />
|
|
||||||
</Directory>
|
|
||||||
</Directory>
|
|
||||||
</Directory>
|
</Directory>
|
||||||
</Directory>
|
</Directory>
|
||||||
</Directory>
|
</Directory>
|
||||||
@ -97,12 +85,6 @@
|
|||||||
<ComponentGroupRef Id="Files" />
|
<ComponentGroupRef Id="Files" />
|
||||||
<ComponentRef Id="StartMenuShortcut" />
|
<ComponentRef Id="StartMenuShortcut" />
|
||||||
<ComponentRef Id="DesktopShortcut" />
|
<ComponentRef Id="DesktopShortcut" />
|
||||||
<MergeRef Id="GStreamer-Libraries" />
|
|
||||||
<MergeRef Id="GStreamer-Plugins-Bad-GPL" />
|
|
||||||
<MergeRef Id="GStreamer-Plugins-Base" />
|
|
||||||
<MergeRef Id="GStreamer-Plugins-FFmpeg-GPL" />
|
|
||||||
<MergeRef Id="GStreamer-Plugins-Good" />
|
|
||||||
<MergeRef Id="GStreamer-Plugins-Ugly-GPL" />
|
|
||||||
</Feature>
|
</Feature>
|
||||||
</Product>
|
</Product>
|
||||||
</Wix>
|
</Wix>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user