diff options
| author | 2026-01-14 05:12:31 +0100 | |
|---|---|---|
| committer | 2026-01-14 05:12:31 +0100 | |
| commit | f093d2a310627aa3ee5a2820339f8a18bd251e81 (patch) | |
| tree | c3d1cdda9f1b8fed6adb5f0dfd17bfa5c81ecb36 /src-tauri/Cargo.toml | |
| parent | f1babdf9a625ddbb661f4e0678e6258511347656 (diff) | |
| download | DropOut-f093d2a310627aa3ee5a2820339f8a18bd251e81.tar.gz DropOut-f093d2a310627aa3ee5a2820339f8a18bd251e81.zip | |
feat(java): integrate Adoptium API for Java runtime download
Add automatic Java (Temurin) download and installation feature:
- Add Adoptium API v3 integration to fetch latest Java releases
- Support JRE and JDK image types with version selection (8/11/17/21)
- Implement platform detection for macOS, Linux, and Windows
- Add SHA256 checksum verification for downloaded archives
- Add tar.gz extraction support with Unix permission preservation
- Handle macOS-specific Java path structure (Contents/Home/bin)
- Add frontend UI with version selector and download progress
- Register Tauri commands: fetch_adoptium_java, download_adoptium_java,
fetch_available_java_versions
Dependencies added: sha2, flate2, tar, dirs
Diffstat (limited to 'src-tauri/Cargo.toml')
| -rw-r--r-- | src-tauri/Cargo.toml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 42fc159..860a862 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -8,10 +8,10 @@ license = "MIT" repository = "https://github.com/HsiangNianian/DropOut" [dependencies] -serde = { version = "1.0", features = ["derive"] } -toml = "0.5" +serde = { version = "1.0", features = ["derive"] } +toml = "0.5" log = "0.4" -env_logger = "0.9" +env_logger = "0.9" tokio = { version = "1.49.0", features = ["full"] } reqwest = { version = "0.13.1", features = ["json", "blocking"] } serde_json = "1.0.149" @@ -20,8 +20,12 @@ tauri-plugin-shell = "2.3" uuid = { version = "1.10.0", features = ["v3", "v4", "serde"] } futures = "0.3" sha1 = "0.10" +sha2 = "0.10" hex = "0.4" zip = "2.2.2" +flate2 = "1.0" +tar = "0.4" +dirs = "5.0" serde_urlencoded = "0.7.1" [build-dependencies] |