From b335d18070f948648c898f0ea7751d6066bdb162 Mon Sep 17 00:00:00 2001 From: zhangxianting Date: Tue, 26 Nov 2024 14:08:05 +0800 Subject: [PATCH] add sw64 support for os-maven-plugin --- README.md | 1 + src/main/java/kr/motd/maven/os/Detector.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 6e2be2a..e67a5bd 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ * `s390_64` if the value is `s390x` * `riscv64` if the value is `riscv64` * `loongarch_64` if the value is `loongarch_64` +* `sw_64` if the value is `sw64` #### Property: `os.detected.version.*` diff --git a/src/main/java/kr/motd/maven/os/Detector.java b/src/main/java/kr/motd/maven/os/Detector.java index eaf8197..210842a 100644 --- a/src/main/java/kr/motd/maven/os/Detector.java +++ b/src/main/java/kr/motd/maven/os/Detector.java @@ -212,6 +212,9 @@ public abstract class Detector { if ("loongarch64".equals(value)) { return "loongarch64"; } + if ("sw64".equals(value)) { + return "sw_64"; + } return UNKNOWN; } -- 2.31.1