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