We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d29cebe commit 02e3588Copy full SHA for 02e3588
lib/arduino_ci/arduino_installation.rb
@@ -1,5 +1,7 @@
1
require "arduino_ci/host"
2
3
+DESIRED_ARDUINO_IDE_VERSION = "1.8.5".freeze
4
+
5
module ArduinoCI
6
7
# Manage the OS-specific install location of Arduino
@@ -55,9 +57,11 @@ def autolocate!
55
57
end
56
58
59
def force_install
- system("wget", "https://downloads.arduino.cc/arduino-1.6.5-linux64.tar.xz")
- system("tar", "xf", "arduino-1.6.5-linux64.tar.xz")
60
- system("mv", "arduino-1.6.5", force_install_location)
+ 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)
65
66
67
0 commit comments