-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* only use GRASS major version in executable names * autodetect GRASS folder (cherry picked from commit 3a4a3af)
- Loading branch information
Showing
6 changed files
with
37 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
setlocal enabledelayedexpansion | ||
|
||
textreplace -std -t bin\@package@-designer.bat | ||
textreplace -std -t bin\python-@package@.bat | ||
|
||
|
@@ -7,13 +9,15 @@ if not %OSGEO4W_MENU_LINKS%==0 mkdir "%OSGEO4W_STARTMENU%" | |
if not %OSGEO4W_DESKTOP_LINKS%==0 mkdir "%OSGEO4W_DESKTOP%" | ||
|
||
for %%g in (@grassversions@) do ( | ||
copy "%OSGEO4W_ROOT%\bin\@[email protected]" "%OSGEO4W_ROOT%\bin\@package@-bin-g%%g.exe" | ||
copy "%OSGEO4W_ROOT%\bin\@[email protected]" "%OSGEO4W_ROOT%\bin\@package@-bin-g%%g.vars" | ||
textreplace -std -t bin\@package@-g%%g.bat | ||
call "%OSGEO4W_ROOT%\bin\@package@-g%%g.bat" --postinstall | ||
for /F "delims=." %%i in ("%%g") do set v=%%i | ||
|
||
copy "%OSGEO4W_ROOT%\bin\@[email protected]" "%OSGEO4W_ROOT%\bin\@package@-bin-g!v!.exe" | ||
copy "%OSGEO4W_ROOT%\bin\@[email protected]" "%OSGEO4W_ROOT%\bin\@package@-bin-g!v!.vars" | ||
textreplace -std -map @grassmajor@ !v! -t bin\@package@-g!v!.bat | ||
call "%OSGEO4W_ROOT%\bin\@package@-g!v!.bat" --postinstall | ||
|
||
if not %OSGEO4W_MENU_LINKS%==0 nircmd shortcut "%OSGEO4W_ROOT%\bin\@package@-bin-g%%g.exe" "%OSGEO4W_STARTMENU%" "QGIS Desktop @version@ with GRASS %%g (Nightly)" | ||
if not %OSGEO4W_DESKTOP_LINKS%==0 nircmd shortcut "%OSGEO4W_ROOT%\bin\@package@-bin-g%%g.exe" "%OSGEO4W_DESKTOP%" "QGIS Desktop @version@ with GRASS %%g (Nightly)" | ||
if not %OSGEO4W_MENU_LINKS%==0 nircmd shortcut "%OSGEO4W_ROOT%\bin\@package@-bin-g!v!.exe" "%OSGEO4W_STARTMENU%" "QGIS Desktop @version@ with GRASS %%g (Nightly)" | ||
if not %OSGEO4W_DESKTOP_LINKS%==0 nircmd shortcut "%OSGEO4W_ROOT%\bin\@package@-bin-g!v!.exe" "%OSGEO4W_DESKTOP%" "QGIS Desktop @version@ with GRASS %%g (Nightly)" | ||
) | ||
|
||
if not %OSGEO4W_MENU_LINKS%==0 nircmd shortcut "%OSGEO4W_ROOT%\bin\nircmd.exe" "%OSGEO4W_STARTMENU%" "Qt Designer with QGIS @version@ custom widgets (Nightly)" "exec hide """%OSGEO4W_ROOT%\bin\@package@-designer.bat"" "%OSGEO4W_ROOT%\apps\@package@\icons\QGIS.ico" | ||
|
@@ -35,3 +39,5 @@ set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/@package@ | |
|
||
del /s /q "%OSGEO4W_ROOT%\apps\@package@\*.pyc" | ||
exit /b 0 | ||
|
||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
setlocal enabledelayedexpansion | ||
|
||
for %%g in (@grassversions@) do ( | ||
for /F "delims=." %%i in ("%%g") do set v=%%i | ||
|
||
del "%OSGEO4W_STARTMENU%\QGIS Desktop @version@ with GRASS %%g (Nightly).lnk" | ||
del "%OSGEO4W_STARTMENU%\QGIS Browser @version@ with GRASS %%g (Nightly).lnk" | ||
del "%OSGEO4W_DESKTOP%\QGIS Desktop @version@ with GRASS %%g (Nightly).lnk" | ||
del "%OSGEO4W_DESKTOP%\QGIS Browser @version@ with GRASS %%g (Nightly).lnk" | ||
del "%OSGEO4W_ROOT%\bin\@package@-g%%g.bat" | ||
del "%OSGEO4W_ROOT%\bin\@package@-bin-g%%g.exe" | ||
del "%OSGEO4W_ROOT%\bin\@package@-bin-g%%g.env" | ||
del "%OSGEO4W_ROOT%\bin\@package@-bin-g%%g.vars" | ||
del "%OSGEO4W_ROOT%\bin\@package@-g!v!.bat" | ||
del "%OSGEO4W_ROOT%\bin\@package@-bin-g!v!.exe" | ||
del "%OSGEO4W_ROOT%\bin\@package@-bin-g!v!.env" | ||
del "%OSGEO4W_ROOT%\bin\@package@-bin-g!v!.vars" | ||
) | ||
|
||
del "%OSGEO4W_STARTMENU%\Qt Designer with QGIS @version@ custom widgets (Nightly).lnk" | ||
|
@@ -20,3 +24,5 @@ del "%OSGEO4W_ROOT%\bin\python-@[email protected]" | |
del "%OSGEO4W_ROOT%\apps\@package@\python\qgis\qgisconfig.py" | ||
del "%OSGEO4W_ROOT%\apps\@package@\bin\qgis.reg" | ||
del /s /q "%OSGEO4W_ROOT%\apps\@package@\*.pyc" | ||
|
||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters