Skip to content

Commit 81943be

Browse files
committed
osgeo4w: move desktop and browser executable to main bin
1 parent d12c4a7 commit 81943be

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

ms-windows/osgeo4w/browser.bat.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
55
call "%OSGEO4W_ROOT%"\apps\grass\grass-@grassversion@\etc\env.bat
66
@echo off
77
path %PATH%;%OSGEO4W_ROOT%\apps\@package@\bin;%OSGEO4W_ROOT%\apps\grass\grass-@grassversion@\lib
8-
set QGIS_PREFIX_PATH=@osgeo4w_msys@/apps/@package@
8+
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/@package@
99
start "Quantum GIS Browser" /B "%OSGEO4W_ROOT%"\@package@-browser.exe %*

ms-windows/osgeo4w/package-nightly.cmd

+8
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ set SRCDIR=%CD%
4747
if "%BUILDDIR:~1,1%"==":" %BUILDDIR:~0,2%
4848
cd %BUILDDIR%
4949

50+
if exist repackage goto package
51+
5052
if not exist build.log goto build
5153

5254
REM
@@ -140,6 +142,7 @@ echo INSTALL: %DATE% %TIME%>>%LOG% 2>&1
140142
%DEVENV% qgis%VERSION%.sln /Project INSTALL /Build %BUILDCONF% /Out %LOG%>>%LOG% 2>&1
141143
if errorlevel 1 goto error
142144

145+
:package
143146
echo PACKAGE: %DATE% %TIME%>>%LOG% 2>&1
144147

145148
cd ..
@@ -156,9 +159,14 @@ REM del %OSGEO4W_ROOT%\apps\%PACKAGENAME%\python\qgis\qgisconfig.py
156159

157160
touch exclude
158161

162+
move %OSGEO4W_ROOT%\apps\%PACKAGENAME%\bin\qgis.exe %OSGEO4W_ROOT%\bin\%PACKAGENAME%.exe
163+
move %OSGEO4W_ROOT%\apps\%PACKAGENAME%\bin\qbrowser.exe %OSGEO4W_ROOT%\bin\%PACKAGENAME%-browser.exe
164+
159165
tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME%-%VERSION%-%PACKAGE%.tar.bz2 ^
160166
--exclude-from exclude ^
161167
apps/%PACKAGENAME% ^
168+
bin/%PACKAGENAME%.exe ^
169+
bin/%PACKAGENAME%-browser.exe ^
162170
bin/%PACKAGENAME%.bat.tmpl ^
163171
bin/%PACKAGENAME%-browser.bat.tmpl ^
164172
etc/postinstall/%PACKAGENAME%.bat ^

ms-windows/osgeo4w/package.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME%-server-%VERSION%-%PACKAGE%.tar.bz2 ^
206206
>>%LOG% 2>&1
207207
if errorlevel 1 goto error
208208

209-
move apps\%PACKAGENAME%\bin\qgis.exe bin\%PACKAGENAME%.exe
210-
move apps\%PACKAGENAME%\bin\qbrowser.exe bin\%PACKAGENAME%-browser.exe
209+
move %OSGEO4W_ROOT%\apps\%PACKAGENAME%\bin\qgis.exe %OSGEO4W_ROOT%\bin\%PACKAGENAME%.exe
210+
move %OSGEO4W_ROOT%\apps\%PACKAGENAME%\bin\qbrowser.exe %OSGEO4W_ROOT%\bin\%PACKAGENAME%-browser.exe
211211
tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME%-%VERSION%-%PACKAGE%.tar.bz2 ^
212212
--exclude-from exclude ^
213213
--exclude "*.pyc" ^
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
22
path %PATH%;%OSGEO4W_ROOT%\apps\@package@\bin
3-
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT%\apps\@package@
3+
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/@package@
44
%OSGEO4W_ROOT%\apps\@package@\crssync

ms-windows/osgeo4w/postinstall-dev.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ set OSGEO4W_ROOT=%O4W_ROOT%
1616

1717
call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
1818
path %PATH%;%OSGEO4W_ROOT%\apps\@package@\bin
19-
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT%\apps\@package@
19+
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/@package@
2020
%OSGEO4W_ROOT%\apps\@package@\crssync

ms-windows/osgeo4w/qgis.bat.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
55
call "%OSGEO4W_ROOT%"\apps\grass\grass-@grassversion@\etc\env.bat
66
@echo off
77
path %PATH%;%OSGEO4W_ROOT%\apps\@package@\bin;%OSGEO4W_ROOT%\apps\grass\grass-@grassversion@\lib
8-
set QGIS_PREFIX_PATH=@osgeo4w_msys@/apps/@package@
8+
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/@package@
99
start "Quantum GIS" /B "%OSGEO4W_ROOT%"\bin\@package@.exe %*

0 commit comments

Comments
 (0)