Skip to content

Commit 02e3588

Browse files
committed
update to arduino 1.8.5
1 parent d29cebe commit 02e3588

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/arduino_ci/arduino_installation.rb

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
require "arduino_ci/host"
22

3+
DESIRED_ARDUINO_IDE_VERSION = "1.8.5".freeze
4+
35
module ArduinoCI
46

57
# Manage the OS-specific install location of Arduino
@@ -55,9 +57,11 @@ def autolocate!
5557
end
5658

5759
def force_install
58-
system("wget", "https://downloads.arduino.cc/arduino-1.6.5-linux64.tar.xz")
59-
system("tar", "xf", "arduino-1.6.5-linux64.tar.xz")
60-
system("mv", "arduino-1.6.5", force_install_location)
60+
pkgname = "arduino-#{DESIRED_ARDUINO_IDE_VERSION}"
61+
tarfile = "#{pkgname}-linux64.tar.xz"
62+
system("wget", "https://downloads.arduino.cc/#{tarfile}")
63+
system("tar", "xf", tarfile)
64+
system("mv", pkgname, force_install_location)
6165
end
6266

6367
end

0 commit comments

Comments
 (0)