Jre detection (#54)

* initial jre detection commit

* added WinReg searching

* added windows support + refactored

* Cargo lock

* fixed linux + added canonicalization

* fixed bug in mac

* Added dunce; handling UNC paths better for canonicalization

* missed cargo lock

* removed tests, added comments

* cargo fmt

* removed redundant mac address, loop over folder

---------

Co-authored-by: Wyatt <wyatt@modrinth.com>
This commit is contained in:
Wyatt Verchere
2023-03-28 10:31:47 -07:00
committed by GitHub
parent 5363cd0a15
commit 8512b45e2b
4 changed files with 261 additions and 1 deletions

15
Cargo.lock generated
View File

@@ -2590,7 +2590,7 @@ dependencies = [
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
"winreg",
"winreg 0.10.1",
]
[[package]]
@@ -3361,7 +3361,9 @@ dependencies = [
"chrono",
"daedalus",
"dirs",
"dunce",
"futures",
"lazy_static",
"log",
"once_cell",
"pretty_assertions",
@@ -3378,6 +3380,7 @@ dependencies = [
"tracing-error",
"url",
"uuid 1.3.0",
"winreg 0.11.0",
"zip",
]
@@ -4181,6 +4184,16 @@ dependencies = [
"winapi",
]
[[package]]
name = "winreg"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "76a1a57ff50e9b408431e8f97d5456f2807f8eb2a2cd79b06068fc87f8ecf189"
dependencies = [
"cfg-if",
"winapi",
]
[[package]]
name = "winres"
version = "0.1.12"