Martin Landa cb2c514b3a simplify package.sh 15 年之前
..
Installer-Files 6136ea4bd5 updates and new icons from Colin Nielsen (merge from devbr6) 16 年之前
osgeo4w cb2c514b3a simplify package.sh 15 年之前
GRASS-Installer.nsi 6c2e2e888f first steps towards config dir (.grass7) 15 年之前
GRASS-Packager.bat 464ff42f61 cosmetics 15 年之前
README.html 5e02a8c557 Ticket https://trac.osgeo.org/grass/ticket/786:Instructions to update NSIS to be compatible with Windows 7 (Merge from releasebranch_6_4, https://trac.osgeo.org/grass/changeset/39661 15 年之前

README.html












<br><br>/* Wiki Pages Styles */<br><br>/* TableOfContents */<br><br>.table-of-contents { <br> border: 1px solid #bbbbbb;<br> color: black; background-color: #eeeeee;<br> font-size: small;<br> text-align:left;<br> margin: 0.5em; padding-left: 1em;<br> width: 360;<br> }<br><br>/* Contents */<br><br>html {<br> background-color: white;<br> color: black;<br> font-family: Arial, Lucida Grande, sans-serif;<br> font-size: 10pt;<br> }<br> <br>body {<br> margin: 30;<br> }<br> <br>ol {<br> font-family: Arial, Lucida Grande, sans-serif;<br> font-size: 10pt;<br> margin-top: 0;<br> margin-bottom: 0;<br> margin-left: 0;<br> }<br><br>h1 {<br> font-family: Arial, Lucida Grande, sans-serif;<br> font-size: 18pt;<br> margin-top: 0;<br> margin-bottom: 50;<br> }<br><br>h2 {<br> font-family: Arial, Lucida Grande, sans-serif;<br> font-size: 16pt;<br> margin-top: 60;<br> margin-bottom: 20;<br> }<br> <br>h3 {<br> font-family: Arial, Lucida Grande, sans-serif;<br> font-size: 14pt;<br> margin-top: 60;<br> margin-bottom: 20;<br> }<br><br>h4 {<br> font-family: Arial, Lucida Grande, sans-serif;<br> font-size: 11pt;<br> margin-top: 0;<br> margin-bottom: 0;<br> }<br><br>p {<br> font-family: Arial, Lucida Grande, sans-serif;<br> font-size: 10pt;<br> margin-top: 10;<br> margin-bottom: 10;<br> }<br><br>code {<br> font-family: Courier-new, monospace;<br> font-size: 10pt;<br> margin-top: 10;<br> margin-bottom: 10;<br> }<br> <br>pre {<br> padding: 1em;<br> border: 1px dashed #2f6fab;<br> color: black;<br> background-color: #f9f9f9;<br> line-height: 1.1em;<br> }<br> <br> <br>/* Tables */<br><br>table<br>{<br> margin: 0.5em 0 0 0.5em;<br> border-collapse: collapse;<br>}<br><br>td<br>{<br> padding: 0.25em 0.5em 0.25em 0.5em;<br> border: 0pt solid #ADB9CC;<br> font-family: Arial, Lucida Grande, sans-serif;<br> font-size: 10pt;<br>}<br> <br><br>/* Links */<br><br>a {<br> text-decoration: none;<br> color: #002bb8;<br> background: none;<br> }<br> <br>a:hover {<br> text-decoration: underline;<br> color: green;<br> }<br> <br>a:visited:hover {<br> text-decoration: underline;<br> color: red;<br> }<br>





How to prepare a WinGRASS Release





Table of Contents



Introduction




  1. Install OSGeo4w Tree and Compile Grass

  2. Create a GRASS self-contained Package

  3. Remove OSGeo4W Traces from Package

  4. Install NSIS

  5. Install NSIS: Untgz Plugin

  6. Create the WinGRASS Installer



Credits and Contacts












Introduction




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.










1. Install OSGeo4w Tree and Compile Grass



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.









2. Create a GRASS self-contained Package



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).










3. Remove OSGeo4W Traces from 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 "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 "%*"









4. Install NSIS (2.45)



Download the NSIS installer



Install to c:\DevTools










5. Install NSIS: Untgz Plugin (1.0.16)



Download the NSIS Untgz Plugin



Unzip to c:\DevTools\Plugins\










6. Create the WinGRASS Installer



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, 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.










Credits and Contacts



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.