-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move setup-win32.py to root & fix win32 packaging
- Loading branch information
Showing
4 changed files
with
45 additions
and
23 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,22 +1,36 @@ | ||
@echo off | ||
SET "GPSBABEL=C:\Program Files\GPSBabel\gpsbabel.exe" | ||
setlocal | ||
|
||
set NAME=%~1 | ||
|
||
echo Postprocessing "%NAME%" | ||
cd /d "%~dp0" | ||
|
||
SET "GPSBABEL=C:\OSGeo4W64\bin\gpsbabel.exe" | ||
SET "Z7=C:\Program Files\7-Zip\7z.exe" | ||
rem SET "Z7=C:\Program Files (x86)\7-Zip\7z.exe" | ||
|
||
REM Convert points into GPX and KML | ||
REM See manual for GPSBabel for options | ||
REM For TCX conversion see below | ||
"%GPSBABEL%" -i unicsv,utc=5 -f "%1.points" ^ | ||
"%GPSBABEL%" -i unicsv,utc=5 -f "%NAME%.points" ^ | ||
-x transform,trk=wpt,del ^ | ||
-o gpx -F "%1.gpx" ^ | ||
-o kml,lines=1,points=0,track=1,trackdirection=1 -F "%1.kml" | ||
-o gpx -F "%NAME%.gpx" ^ | ||
-o kml,lines=1,points=0,track=1,trackdirection=1 -F "%NAME%.kml" | ||
|
||
rem -o gtrnctr,sport=Running,course=0 -F %1.tcx ^ | ||
rem Compress KML into KMZ | ||
DEL /Q /F "%NAME%.kmz" 2> nul | ||
"%Z7%" a -tzip "%NAME%.kmz" "%NAME%.kml" > nul | ||
|
||
%~dp0\csv2tcx.exe "%1" > "%1.tcx" | ||
rem Get TCX | ||
csv2tcx.exe "%NAME%" > "%NAME%.tcx" | ||
|
||
REM Make a compressed Google Earth file | ||
REM %COMSPEC% /C DEL /Q /F "%1.kmz" | ||
REM "%Z7%" a -tzip "%1.kmz" "%1.kml" > nul | ||
|
||
set REQUESTS_CA_BUNDLE=%~dp0cacert.pem | ||
REM Upload TCX to web. See source code for details | ||
REM %~dp0\tcx2web.exe "%1.tcx" | ||
%~dp0\tcx2web.exe "%NAME%.tcx" | ||
|
||
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