mirror of https://github.com/noisymime/Arduino.git
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:
parent
653a05273d
commit
481fd94ac6
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue