The exe carried no icon resource and the tray drew a stand-in disc, so Explorer, the taskbar and the tray each guessed at what to show. The old front end's medallion was already in the tree and identical to the installer's icon.ico, so the whole shell now draws it: set_app_icon feeds icons/icon_full.png to rune before the event loop, the tray decodes the bundled 32 px, and build.rs bakes icon.ico into the exe for Explorer and shortcuts. The 128 px variants stay in tauri-app, which rune's own resizing makes redundant here.
51 lines
1.7 KiB
TOML
51 lines
1.7 KiB
TOML
[package]
|
|
name = "leaguerecorder"
|
|
version = "0.3.0"
|
|
edition = "2024"
|
|
description = "Native League Recorder desktop app (rune)"
|
|
license = "MIT"
|
|
|
|
[[bin]]
|
|
name = "leaguerecorder"
|
|
path = "src/main.rs"
|
|
|
|
[build-dependencies]
|
|
# Bakes icons/icon.ico into the exe's resources (build.rs), for Explorer and shortcuts.
|
|
winresource = "0.1"
|
|
|
|
[dependencies]
|
|
rune = { git = "https://github.com/anomalyco/rune", rev = "4ddf696b0f13ec618fdeb80b4c9ea1a6246547f1" }
|
|
rune-kit = { git = "https://github.com/anomalyco/rune", rev = "4ddf696b0f13ec618fdeb80b4c9ea1a6246547f1" }
|
|
rune-notify = { git = "https://github.com/anomalyco/rune", rev = "4ddf696b0f13ec618fdeb80b4c9ea1a6246547f1" }
|
|
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
directories = "6"
|
|
chrono = { version = "0.4", default-features = false, features = ["clock", "std", "serde"] }
|
|
tokio = { version = "1", features = ["rt", "net", "io-util", "time", "sync"] }
|
|
uuid = { version = "1", features = ["v4", "serde"] }
|
|
ffmpeg-sidecar = "2.7"
|
|
ureq = "3.5"
|
|
# PNG decode of the bundled tray icon; the same crate and features rune itself uses.
|
|
image = { version = "0.25", default-features = false, features = ["png"] }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
winreg = "0.56"
|
|
windows = { version = "0.62", features = [
|
|
"Win32_Foundation",
|
|
"Win32_System_Console",
|
|
"Win32_System_Diagnostics_ToolHelp",
|
|
"Win32_System_Threading",
|
|
] }
|
|
|
|
# Rune is patched in the workspace that builds it. A dependency's `[patch]` doesn't apply to
|
|
# the app that depends on it, so these three copies (from rune's own vendor/) are repeated here.
|
|
[patch.crates-io]
|
|
wgpu-hal = { path = "vendor/wgpu-hal" }
|
|
winit = { path = "vendor/winit" }
|
|
parley_engine = { path = "vendor/parley_engine" }
|
|
|
|
[profile.release]
|
|
lto = "thin"
|
|
strip = true
|