Skip to content

Commit 001c80b

Browse files
committed
osgeo4w: fix grass plugin postinstall
1 parent af4cbe2 commit 001c80b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ms-windows/osgeo4w/postinstall-grass.bat

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ textreplace -std -t bin\@package@-grass@grassmajor@.bat
22

33
if "%OSGEO4W_DESKTOP%"=="" set OSGEO4W_DESKTOP=~$folder.common_desktop$
44

5-
copy bin\@package@-bin.exe bin\@package@-bin-grass@grassmajor@.exe
6-
copy bin\@package@-bin.vars bin\@package@-bin-grass@grassmajor@.vars
5+
copy bin\@package@-bin.exe bin\@package@-bin-g@grassversion@.exe
6+
copy bin\@package@-bin.vars bin\@package@-bin-g@grassversion@.vars
77
call "%OSGEO4W_ROOT%\bin\@package@-grass@grassmajor@.bat" --postinstall
88

99
if not %OSGEO4W_MENU_LINKS%==0 mkdir "%OSGEO4W_STARTMENU%"
1010
if not %OSGEO4W_DESKTOP_LINKS%==0 mkdir "%OSGEO4W_DESKTOP%"
1111

12-
if not %OSGEO4W_MENU_LINKS%==0 nircmd shortcut "%OSGEO4W_ROOT%\bin\@package@-bin-grass@grassmajor@.exe" "%OSGEO4W_STARTMENU%" "QGIS Desktop @version@ with GRASS @grassversion@"
13-
if not %OSGEO4W_DESKTOP_LINKS%==0 nircmd shortcut "%OSGEO4W_ROOT%\bin\@package@-bin-grass@grassmajor@.exe" "%OSGEO4W_DESKTOP%" "QGIS Desktop @version@ with GRASS @grassversion@"
12+
if not %OSGEO4W_MENU_LINKS%==0 nircmd shortcut "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassversion@.exe" "%OSGEO4W_STARTMENU%" "QGIS Desktop @version@ with GRASS @grassversion@"
13+
if not %OSGEO4W_DESKTOP_LINKS%==0 nircmd shortcut "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassversion@.exe" "%OSGEO4W_DESKTOP%" "QGIS Desktop @version@ with GRASS @grassversion@"

ms-windows/osgeo4w/preremove-grass.bat

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ del "%OSGEO4W_DESKTOP%\QGIS Desktop @version@ with GRASS @grassversion@.lnk"
55
del "%OSGEO4W_DESKTOP%\QGIS Browser @version@ with GRASS @grassversion@.lnk"
66
rmdir "%OSGEO4W_DESKTOP%"
77
del "%OSGEO4W_ROOT%\bin\@package@-grass@grassmajor@.bat"
8-
del "%OSGEO4W_ROOT%\bin\@package@-bin-grass@grassmajor@.exe"
9-
del "%OSGEO4W_ROOT%\bin\@package@-bin-grass@grassmajor@.vars"
10-
del "%OSGEO4W_ROOT%\bin\@package@-bin-grass@grassmajor@.env"
8+
del "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassversion@.exe"
9+
del "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassversion@.vars"
10+
del "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassversion@.env"

0 commit comments

Comments
 (0)