Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
liqwtf committed Oct 2, 2024
1 parent 59b3c1e commit 01878e6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 23 deletions.
Binary file modified bun.lockb
Binary file not shown.
22 changes: 12 additions & 10 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 7 additions & 12 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "decent_client_launcher"
version = "0.0.3"
description = "Minecraft Launcher - Decent Client"
authors = ["liqwtf"]
license = ""
license = "MIT"
repository = "https://github.com/Decent-Client/launcher"
edition = "2021"
rust-version = "1.71"
Expand All @@ -15,18 +15,19 @@ name = "decent_client"
crate-type = ["staticlib", "cdylib", "lib"]

[build-dependencies]
tauri-build = { version = "2.0.0-rc.9", features = [] }
tauri-build = { version = "2.0.0", features = [] }

[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "2.0.0-rc.10", features = [ "macos-private-api", "tray-icon"] }
tauri = { version = "2.0.0-rc", features = ["macos-private-api", "tray-icon"] }
reqwest = { version = "0.12.7", features = ["json"] }
tokio = { version = "1", features = ["full"] }
tauri-plugin-system-info = "2.0.5"
tauri-plugin-single-instance = "2.0.0"
tauri-plugin-fs = "2.0.0-rc.2"
tauri-plugin-os = "2.0.0-rc"
tauri-plugin-window-state = "2.0.0-rc"
tauri-plugin-fs = "2.0.0"
tauri-plugin-os = "2.0.0"
windows-version = "0.1.0"
tauri-plugin-decorum = "1.1.1"
minecraft-essentials = {version = "0.2.11", features = [] }
Expand All @@ -38,10 +39,4 @@ base64 = "0.22"
enigo = "0.1.3"

[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.26.0"

[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
tauri-plugin-window-state = "2.0.0-rc"



cocoa = "0.26.0"
2 changes: 1 addition & 1 deletion src-tauri/src/commands/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub async fn get_player_face(player_name: String) -> Result<String, String> {
// Convert to base64
let mut buffer = Vec::new();
combined_face
.write_to(&mut Cursor::new(&mut buffer), image::ImageOutputFormat::Png)
.write_to(&mut Cursor::new(&mut buffer), image::ImageFormat::Png)
.map_err(|e| e.to_string())?;
let base64_image = general_purpose::STANDARD.encode(&buffer);

Expand Down

0 comments on commit 01878e6

Please sign in to comment.