[package]
name = "ironstorage-desktop"
description = "Iced desktop frontend for IronStorage"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
publish = false

[package.metadata.packager]
product-name = "IronStorage"
identifier = "de.rfc1437.ironstorage"
category = "utility"
icons = ["../../assets/icon-candidates/vault-classic@2x.png"]
before-packaging-command = { script = "cargo build --release --package ironstorage-desktop --package ironstorage-cli --package ironstorage-tui", dir = "../.." }
binaries = [
    { path = "ironstorage-desktop", main = true },
    { path = "ironstorage" },
    { path = "ironstorage-tui" },
]

[package.metadata.packager.macos]
signing-identity = "-"

[[bin]]
name = "ironstorage-desktop"
path = "src/main.rs"

[dependencies]
iced.workspace = true
ironstorage.workspace = true
zeroize.workspace = true

[target.'cfg(target_os = "macos")'.dependencies]
muda.workspace = true

[target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies]
rfd.workspace = true

[target.'cfg(target_os = "linux")'.dependencies]
ashpd.workspace = true
url.workspace = true

[dev-dependencies]
tempfile = "3"
