Skip to content

Commit 9a6ee05

Browse files
authored
Update maintenance tool before replacing qt components (#21)
Signed-off-by: Stephen Brawner <[email protected]>
1 parent 2f27486 commit 9a6ee05

File tree

1 file changed

+12
-0
lines changed
  • cookbooks/ros2_windows/recipes

1 file changed

+12
-0
lines changed

cookbooks/ros2_windows/recipes/qt5.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@
3232
# Install scripts finds and installs the most recent LTS version
3333
error_filename = File.join(Dir.home(), "qt_install.err")
3434

35+
# Update maintenance tool first, if necessary
36+
windows_package 'Qt Maintenance Update' do
37+
source 'c:\\Qt\\MaintenanceTool.exe'
38+
installer_type :custom
39+
# I couldn't find documentation, but return codes don't seem to correspond with an actual failure.
40+
# Instead error information is written to the ErrorLogname below
41+
returns [0]
42+
options 'up qt.tools.maintenance'
43+
timeout 600
44+
only_if {::File.exist?('c:\\Qt\\MaintenanceTool.exe')}
45+
end
46+
3547
windows_package 'Qt Maintenance' do
3648
source 'c:\\Qt\\MaintenanceTool.exe'
3749
installer_type :custom

0 commit comments

Comments
 (0)