in java/src/main/java/com/spotify/voyager/jni/utils/JniLibExtractor.java [48:70]
private static String platform() {
String osArch = System.getProperty("os.arch");
final String osName = System.getProperty("os.name").toLowerCase();
if (osArch.equals("x86_64") || osArch.equals("amd64")) {
osArch = "x64";
}
if (osName.contains("mac")) {
return "mac-" + osArch;
}
if (osName.contains("linux")) {
return "linux-" + osArch;
}
if (osName.contains("win")) {
return "win-" + osArch;
}
throw new RuntimeException(
"com.spotify.voyager currently only runs on macOS, Linux, and Windows.");
}