|
15 年之前 | |
---|---|---|
.. | ||
Installer-Files | 16 年之前 | |
osgeo4w | 15 年之前 | |
GRASS-Installer.nsi | 15 年之前 | |
GRASS-Packager.bat | 15 年之前 | |
README.html | 15 年之前 |
Table of Contents
Credits and Contacts
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-7.0.svn
).
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
.
Download README.html from here,
place in c:\temp\GRASS-Release-Package
(update version numbers as necessary).
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 "%*"
if "x%*" == "x" start "MSYS 1.0" "%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 "MSYS 1.0" "%WD%rxvt" -backspacekey -sl 2500 -fg %FGCOLOR% -bg %BGCOLOR% -sr -fn Courier-12 -tn msys -geometry 80x25 -e /bin/sh --login -c "%*"
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-7.0.svn\demolocation
At line 18 set the INSTALLER_TYPE
variable to "Release"
,
then, at lines 24-26, set the RELEASE_VERSION_NUMBER
, theRELEASE_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 inc:\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 1 Nov 2009.