Skip to content

Commit 481fd94

Browse files
author
Kyle Evans
committed
Add FreeBSD Platform Tag -- supports x86_64-freebsd, arm*-freebsd, and i386-freebsd with optional extension for tagging specific release (e.g. freebsd11)
1 parent 653a052 commit 481fd94

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

arduino-core/src/cc/arduino/contributions/packages/HostDependentDownloadableContribution.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@ public boolean isCompatible(Platform platform) {
7979
}
8080
}
8181

82+
if (osName.contains("FreeBSD")) {
83+
if (osArch.contains("amd64")) {
84+
return host.matches("x86_64-freebsd[0-9]*");
85+
} else if (osArch.contains("arm")) {
86+
return host.matches("arm.*-freebsd[0-9]*");
87+
} else {
88+
return host.matches("i386-freebsd[0-9]*");
89+
}
90+
}
91+
8292
return false;
8393
}
8494
}

0 commit comments

Comments
 (0)