QGIS/ms-windows/osgeo4w/postinstall-grass.bat
Juergen E. Fischer ef24e65ccf osgeo4w: fix grass plugin postinstall
(cherry picked from commit 001c80b0c3478f9d1fc026965c439aa843f0a66d)
2018-02-25 16:43:38 +01:00

14 lines
819 B
Batchfile

textreplace -std -t bin\@package@-grass@grassmajor@.bat
if "%OSGEO4W_DESKTOP%"=="" set OSGEO4W_DESKTOP=~$folder.common_desktop$
copy bin\@package@-bin.exe bin\@package@-bin-g@grassversion@.exe
copy bin\@package@-bin.vars bin\@package@-bin-g@grassversion@.vars
call "%OSGEO4W_ROOT%\bin\@package@-grass@grassmajor@.bat" --postinstall
if not %OSGEO4W_MENU_LINKS%==0 mkdir "%OSGEO4W_STARTMENU%"
if not %OSGEO4W_DESKTOP_LINKS%==0 mkdir "%OSGEO4W_DESKTOP%"
if not %OSGEO4W_MENU_LINKS%==0 nircmd shortcut "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassversion@.exe" "%OSGEO4W_STARTMENU%" "QGIS Desktop @version@ with GRASS @grassversion@"
if not %OSGEO4W_DESKTOP_LINKS%==0 nircmd shortcut "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassversion@.exe" "%OSGEO4W_DESKTOP%" "QGIS Desktop @version@ with GRASS @grassversion@"