/* Wiki Pages Styles */ /* TableOfContents */ .table-of-contents { border: 1px solid #bbbbbb; color: black; background-color: #eeeeee; font-size: small; text-align:left; margin: 0.5em; padding-left: 1em; width: 360; } /* Contents */ html { background-color: white; color: black; font-family: Arial, Lucida Grande, sans-serif; font-size: 10pt; } body { margin: 30; } ol { font-family: Arial, Lucida Grande, sans-serif; font-size: 10pt; margin-top: 0; margin-bottom: 0; margin-left: 0; } h1 { font-family: Arial, Lucida Grande, sans-serif; font-size: 18pt; margin-top: 0; margin-bottom: 50; } h2 { font-family: Arial, Lucida Grande, sans-serif; font-size: 16pt; margin-top: 60; margin-bottom: 20; } h3 { font-family: Arial, Lucida Grande, sans-serif; font-size: 14pt; margin-top: 60; margin-bottom: 20; } h4 { font-family: Arial, Lucida Grande, sans-serif; font-size: 11pt; margin-top: 0; margin-bottom: 0; } p { font-family: Arial, Lucida Grande, sans-serif; font-size: 10pt; margin-top: 10; margin-bottom: 10; } code { font-family: Courier-new, monospace; font-size: 10pt; margin-top: 10; margin-bottom: 10; } pre { padding: 1em; border: 1px dashed #2f6fab; color: black; background-color: #f9f9f9; line-height: 1.1em; } /* Tables */ table { margin: 0.5em 0 0 0.5em; border-collapse: collapse; } td { padding: 0.25em 0.5em 0.25em 0.5em; border: 0pt solid #ADB9CC; font-family: Arial, Lucida Grande, sans-serif; font-size: 10pt; } /* Links */ a { text-decoration: none; color: #002bb8; background: none; } a:hover { text-decoration: underline; color: green; } a:visited:hover { text-decoration: underline; color: red; }
Table of Contents
This document explains how to prepare a WinGRASS release (as a self-contained package installer) using the scripts contained in the mswindows folder. In order to avoid mistakes or misunderstandings, we highly recommend to follow each step and command exactly as they are written in this document.
Follow the instructions here to download the OSGeo4W installer, install the required dependencies, and build Grass from source.
Do not move on to step two until you have successfully tested your new version of Grass.
Copy all the content of the mswindows folder to a temporary directory, for
example c:\temp
.
Edit lines 11-15 in the file c:\temp\GRASS-Packager.bat
to
reflect the paths to your OSGeo4W tree (eg. c:\OSGeo4W
) and
the GRASS version being packaged (eg. grass-6.4.0RC4
).
Launch the file c:\temp\GRASS-Packager.bat
and select
the option number 1.
When finished, you should have a GRASS self-contained release package
in c:\temp\GRASS-Release-Package
.
Open c:\temp\GRASS-Release-Package\msys\msys.bat
and remove
lines 11-16.
At the end of line 88 (also in msys.bat) change:
start %WD%rxvt -backspacekey -sl 2500 -fg %FGCOLOR% -bg %BGCOLOR% -sr -fn Courier-12 -tn msys -geometry 80x25 -e /bin/sh --login -c "%*"
To:
if "x%*" == "x" start %WD%rxvt -backspacekey -sl 2500 -fg %FGCOLOR% -bg %BGCOLOR% -sr -fn Courier-12 -tn msys -geometry 80x25 -e /bin/sh --login -i
if NOT "x%*" == "x" start %WD%rxvt -backspacekey -sl 2500 -fg %FGCOLOR% -bg %BGCOLOR% -sr -fn Courier-12 -tn msys -geometry 80x25 -e /bin/sh --login -c "%*"
Delete c:\temp\GRASS-Release-Package\msys\etc\fstab
Download the NSIS Untgz Plugin
Unzip to c:\DevTools\Plugins\
Copy c:\DevTools\Plugins\untgz\untgz.dll
to
c:\DevTools\Plugins\
Open the the file c:\temp\GRASS-Installer.nsi
.
At line 13 set the DEMOLOCATION_PATH
varibale to the
demolocation folder in the source tree.
For example, c:\msys\local\src\grass-6.4.0RC4\demolocation
At line 18 set the INSTALLER_TYPE
variable to "Release"
,
then, at lines 24-26, set the RELEASE_VERSION_NUMBER
, the
RELEASE_SVN_REVISION
and the RELEASE_BINARY_REVISION
variables.
Finally, right click on the file c:\temp\GRASS-Installer.nsi
and select Compile NSIS Script
.
When finished, you should have the WinGRASS release installer in
c:\temp
.
The GRASS MSYS Environment and the GRASS Packager and Installer scripts were created by Marco Pasetti, and updated for use on the osgeo4w tree by Colin Nielsen
To contact them, e-mail to: GRASS Development Mailing List (http://lists.osgeo.org/mailman/listinfo/grass-dev).
Last edited by Colin Nielsen on 29 April 2009.