From 2ef711ab2192751a15550c789e7d7e1adfc0652b Mon Sep 17 00:00:00 2001 From: Alexander Kojevnikov Date: Tue, 15 Jun 2010 21:59:39 +1000 Subject: [PATCH] [win] Create a ZIP archive along with the MSI package (issue 2) --- win/make-win32.sh | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/win/make-win32.sh b/win/make-win32.sh index b670c1a..ddfc571 100755 --- a/win/make-win32.sh +++ b/win/make-win32.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# This script will build an MSI installer for Win32. +# This script will build a ZIP archive and an MSI installer for Win32. # It requires a fully functioning MinGW/MSYS environment. # The script also depends on 7z and WiX. @@ -9,16 +9,16 @@ SZ_PATH=c:/Program\ Files/7-Zip pushd $(dirname $0)/.. -rm -fr win/msi-data -mkdir win/msi-data +rm -fr win/Spek +mkdir win/Spek # Compile the resource file windres win/spek.rc -O coff -o win/spek.res mkdir src/win && cp win/spek.res src/win/ -CFLAGS="-mwindows" LDFLAGS="win/spek.res" ./configure --prefix=${PWD}/win/msi-data && make && make install +CFLAGS="-mwindows" LDFLAGS="win/spek.res" ./configure --prefix=${PWD}/win/Spek && make && make install -cd win/msi-data +cd win/Spek urls=(\ # GTK+ and its dependencies @@ -70,25 +70,28 @@ cd .. # Extract files from x86-OSSBuild-GStreamer-Dependencies-GPL.msm mkdir deps -"$WIX_PATH"/dark.exe x86-OSSBuild-GStreamer-Dependencies-GPL.msm -o deps/deps.wxs -x deps +"$WIX_PATH"/dark x86-OSSBuild-GStreamer-Dependencies-GPL.msm -o deps/deps.wxs -x deps for line in $(grep "