mirror of
https://github.com/TeamPiped/reqwest4j.git
synced 2024-08-14 23:54:39 +00:00
add macos support
This commit is contained in:
parent
52bb8f76e4
commit
5c9e7fa7f5
2 changed files with 5 additions and 0 deletions
|
@ -8,5 +8,7 @@ rust {
|
|||
|
||||
targets += target("aarch64-unknown-linux-gnu", "libreqwest.so")
|
||||
targets += target("x86_64-unknown-linux-gnu", "libreqwest.so")
|
||||
targets += target("aarch64-apple-darwin", "libreqwest.dylib")
|
||||
targets += target("x86_64h-apple-darwin", "libreqwest.dylib")
|
||||
targets += target("x86_64-pc-windows-gnu", "libreqwest.dll")
|
||||
}
|
||||
|
|
|
@ -26,6 +26,9 @@ public class ReqwestUtils {
|
|||
} else if (os.contains("linux")) {
|
||||
extension = ".so";
|
||||
native_folder = "linux";
|
||||
} else if (os.contains("darwin")) {
|
||||
extension = ".dylib";
|
||||
native_folder = "darwin"; // or apple?
|
||||
} else {
|
||||
throw new RuntimeException("OS not supported");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue