1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-03-14 11:29:26 +01:00

Add FreeBSD Platform Tag -- supports x86_64-freebsd, arm*-freebsd, and i386-freebsd with optional extension for tagging specific release (e.g. freebsd11)

This commit is contained in:
Kyle Evans 2016-10-03 23:37:27 -05:00
parent 653a05273d
commit 481fd94ac6

View File

@ -79,6 +79,16 @@ public abstract class HostDependentDownloadableContribution extends Downloadable
} }
} }
if (osName.contains("FreeBSD")) {
if (osArch.contains("amd64")) {
return host.matches("x86_64-freebsd[0-9]*");
} else if (osArch.contains("arm")) {
return host.matches("arm.*-freebsd[0-9]*");
} else {
return host.matches("i386-freebsd[0-9]*");
}
}
return false; return false;
} }
} }