Skip to content

Commit

Permalink
Fix installer to download get_iplayer from www.infradead.org
Browse files Browse the repository at this point in the history
And don't tie its version number to get_iplayer, if that's how it works.
  • Loading branch information
dwmw2 committed May 27, 2010
1 parent 4baa3fa commit a833e9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions make-nsis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,12 @@ if [ ! -r perlfiles.tar.gz ]; then
fi

NSISDIR=`mktemp -d /tmp/gipXXXXXX`
VERSION=`./get_iplayer --help | head -1 | cut -f1 -d, | cut -f2 -dv`

cp -av windows/get_iplayer windows/installer_files $NSISDIR
tar xvfz perlfiles.tar.gz -C $NSISDIR/get_iplayer
cp get_iplayer $NSISDIR/get_iplayer/get_iplayer.pl
cp get_iplayer.cgi $NSISDIR/get_iplayer/get_iplayer.cgi
sed "s/\(!define VERSION\).*/\1 \"$VERSION\"/" -i $NSISDIR/get_iplayer/get_iplayer_setup.nsi
mkdir -p $NSISDIR/get_iplayer/Downloads
cd $NSISDIR
makensis -NOCD get_iplayer/get_iplayer_setup.nsi
cd -
mv $NSISDIR/get_iplayer_setup_${VERSION}.exe .
mv -v $NSISDIR/get_iplayer_setup_*.exe .
rm -rf $NSISDIR
6 changes: 3 additions & 3 deletions windows/get_iplayer/get_iplayer_setup.nsi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
;Product Info
Name "get_iplayer"
!define PRODUCT "get_iplayer"
!define VERSION "3.0a+"
!define VERSION "4.0"

!include "MUI.nsh"
!include "Sections.nsh"
Expand Down Expand Up @@ -68,10 +68,10 @@ Section "get_iplayer" section1

;download get_iplayer
Delete $INSTDIR\get_iplayer.pl
NSISdl::download http://github.com/jjl/get_iplayer/raw/master/get_iplayer $INSTDIR\get_iplayer.pl
NSISdl::download http://www.infradead.org/get_iplayer/get_iplayer $INSTDIR\get_iplayer.pl

;download get_iplayer.cgi
NSISdl::download http://github.com/jjl/get_iplayer/raw/master/get_iplayer.cgi $INSTDIR\get_iplayer.cgi
NSISdl::download http://www.infradead.org/get_iplayer/get_iplayer.cgi $INSTDIR\get_iplayer.cgi

;startmenu
CreateDirectory "$SMPROGRAMS\get_iplayer"
Expand Down

0 comments on commit a833e9f

Please sign in to comment.