Had a quick go at updating:
function windows_installer () {
MAKENSIS=`which makensis`
if [ $? == 0 ] ; then
HERE=`pwd`
cd ${BUILD}/${PLATFORM}
makensis "-NOCD" uDigInstallScript.nsi
cd ${HERE}
cp ${BUILD}/${PLATFORM}/udig-*.exe ${BUILD}/udig-${VERSION}.${EXT}.exe
else
WINE=`which wine`
if [ $? == 0 ] ; then
cp installer/* ${BUILD}/${PLATFORM}/
HERE=`pwd`
if [ ! -f "${TOOL}" ] ; then
TOOL=`find $HOME/.wine -name makensis.exe|sed -n 1p`
fi
if [ -f "${TOOL}" ] ; then
cd ${BUILD}/${PLATFORM}
$WINE "${TOOL}" "/NOCD" uDigInstallScript.nsi
cd ${HERE}
cp ${BUILD}/${PLATFORM}/udig-*.exe ${BUILD}/udig-${VERSION}.${EXT}.exe
else
echo "makensisw.exe cannot be found"
fi
else
echo "wine is not installed so creating windows installer"
fi
fi
}
The uDigInstallScript.nsi is not in the correct location; so there must be some
magic setup I am unware of ... I am used to unpacking the win32 build into the
installer directory before running nsis; perhaps this time the configuration
file is supposed to be copied into the build directory?
--
Jody Garnett
On Friday, 1 July 2011 at 12:50 AM, Jody Garnett wrote:
> Hi Jesse:
>
> Trying to get things set up so your install scripts will run NSIS for me;
> trying to create an installer today in a VM was an amusing lesson in watching
> windows updater.
>
> so far I have had some luck with ....
>
> 1) brew doctor (to make my env correct)
> 2) brew install wine
> 3) brew install winetricks
>
> However using wine to install NSIS did not work:
>
> $ wine install ~/Downloads/nsis-2.46-setup.exe
> err:module:DelayLoadFailureHook failed to delay load
> shell32.dll.SHGetFolderPathW
> wine: Call from 0x7b82bdf2 to unimplemented function
> shell32.dll.SHGetFolderPathW, aborting
> wine: Unimplemented function shell32.dll.SHGetFolderPathW called at address
> 0x7b82bdf2 (thread 000b), starting debugger...
> err:module:DelayLoadFailureHook failed to delay load
> user32.dll.DialogBoxParamW
> wine: Call from 0x7b82bdf2 to unimplemented function
> user32.dll.DialogBoxParamW, aborting
> winedbg: Internal crash at 0x7b82bdf2
> wine: cannot find L"C:\\windows\\system32\\install.exe"
>
> (don't suppose you can see what I have done wrong on this one ...)
>
>
> I also note that NSIS is willing to run in a posix environment; and that home
> brew supports "makensis"
>
> 4) brew install makensis
>
> Could the script be modified to use the mac version of makensis?
>
> --
> Jody Garnett
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel