From 57e5da0730bd2af1369c832747c99feb62964687 Mon Sep 17 00:00:00 2001 From: chenhzhu Date: Tue, 6 Aug 2024 17:46:48 +0800 Subject: [PATCH 1/2] Update: PlatformDetector.java to support riscv64 --- src/main/java/com/github/os72/protocjar/PlatformDetector.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/github/os72/protocjar/PlatformDetector.java b/src/main/java/com/github/os72/protocjar/PlatformDetector.java index 7a99348..da64b07 100644 --- a/src/main/java/com/github/os72/protocjar/PlatformDetector.java +++ b/src/main/java/com/github/os72/protocjar/PlatformDetector.java @@ -217,6 +217,9 @@ private static String normalizeArch(String value) { if ("s390x".equals(value)) { return "s390_64"; } + if ("riscv64".equals(osArch)) { + return "riscv64"; + } return UNKNOWN; } From 27b56ffd31548181297e177656f43a47d910f275 Mon Sep 17 00:00:00 2001 From: chenhzhu Date: Wed, 7 Aug 2024 13:29:39 +0800 Subject: [PATCH 2/2] Update PlatformDetector.java --- src/main/java/com/github/os72/protocjar/PlatformDetector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/os72/protocjar/PlatformDetector.java b/src/main/java/com/github/os72/protocjar/PlatformDetector.java index da64b07..94986b9 100644 --- a/src/main/java/com/github/os72/protocjar/PlatformDetector.java +++ b/src/main/java/com/github/os72/protocjar/PlatformDetector.java @@ -217,7 +217,7 @@ private static String normalizeArch(String value) { if ("s390x".equals(value)) { return "s390_64"; } - if ("riscv64".equals(osArch)) { + if ("riscv64".equals(value)) { return "riscv64"; }