Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions windows/droneapiWinBuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,29 @@ for /f "tokens=*" %%a in (
set VERSION=%%a
)

rem -----Get protobuf and unzip-----
C:\python27\scripts\pip.exe install --download .\ protobuf
rem get the protobuf fullname
for /f "tokens=*" %%a in (
'dir /B protobuf-*'
) do (
set PROTOBUFFULL=%%a
)

rem Use 7zip to unzip files. Works for both 32 and 64 bit versions
"C:\Program Files\7-zip\7z.exe" x -y %PROTOBUFFULL%
"C:\Program Files\7-zip\7z.exe" x -y .\dist\protobuf*
"C:\Program Files (x86)\7-zip\7z.exe" x -y %PROTOBUFFULL%
"C:\Program Files (x86)\7-zip\7z.exe" x -y .\dist\protobuf*

rem get the protobuf fullname
for /f "tokens=*" %%a in (
'dir /A:D /B protobuf-*'
) do (
set PROTOBUFDIR=%%a
)
xcopy /E /Y %PROTOBUFDIR%\google .\google\


rem -----Build the Installer-----
"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" /dMyAppVersion=%VERSION% -compile droneapi_installer.iss
Expand Down
2 changes: 2 additions & 0 deletions windows/droneapi_installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
[Files]
Source: "..\droneapi\*"; DestDir: "{code:GetMAVProxyPath}\droneapi"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "..\examples\*"; DestDir: "{code:GetMAVProxyPath}\examples"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "google\*"; DestDir: "{code:GetMAVProxyPath}\google"; Flags: ignoreversion recursesubdirs createallsubdirs

; NOTE: Don't use "Flags: ignoreversion" on any shared system files

; Check if MAVProxy is installed (if so, get the install path)
Expand Down