Skip to content

Commit

Permalink
Merge pull request #809 from codelano/patch-1
Browse files Browse the repository at this point in the history
Added support for Raspbian OS armv7l architecture
  • Loading branch information
eirslett committed Aug 15, 2019
2 parents a57d5fa + 5d02a6f commit cdbb720
Showing 1 changed file with 5 additions and 1 deletion.
@@ -1,14 +1,18 @@
package com.github.eirslett.maven.plugins.frontend.lib;

enum Architecture { x86, x64, ppc64le, s390x, arm64;
enum Architecture { x86, x64, ppc64le, s390x, arm64, armv7l;
public static Architecture guess(){
String arch = System.getProperty("os.arch");
String version = System.getProperty("os.version");

if (arch.equals("ppc64le")) {
return ppc64le;
} else if (arch.equals("aarch64")) {
return arm64;
} else if (arch.equals("s390x")) {
return s390x;
} else if (arch.equals("arm") && version.contains("v7")) {
return armv7l;
} else {
return arch.contains("64") ? x64 : x86;
}
Expand Down

0 comments on commit cdbb720

Please sign in to comment.