A Windows release build has no console, so mlog! lines and panics went nowhere. They now also go to mtgc.log in the app data folder, which the Info tab's Show log file button reveals, and each launch logs the version. A card data update logs each stage, and a failed swap logs every attempt plus what's blocking it: both files' details, whether the folder refuses changes in general, and on Windows whether the files can be opened exclusively and which processes the Restart Manager says hold them.
40 lines
1.3 KiB
TOML
40 lines
1.3 KiB
TOML
[package]
|
|
name = "mtgc"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "mtgc — personal Magic: The Gathering library catalog"
|
|
|
|
[lib]
|
|
# The Tauri app logic lives in a lib so the same entry point can serve desktop
|
|
# and (later) mobile targets.
|
|
name = "mtgc_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = [] }
|
|
tauri-plugin-dialog = "2"
|
|
# Reads the files the dialog picks: on Android those are content:// URIs, which
|
|
# std::fs can't open.
|
|
tauri-plugin-fs = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
mtgc-core = { path = "../crates/mtgc-core" }
|
|
tauri-plugin-opener = "2.5.4"
|
|
url = "2"
|
|
|
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
|
|
# Copying a card image: the clipboard takes raw pixels, and Scryfall serves JPEGs.
|
|
tauri-plugin-clipboard-manager = "2"
|
|
image = { version = "0.25", default-features = false, features = ["jpeg"] }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
# Restart Manager: naming what has a file open when it can't be replaced.
|
|
windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_System_RestartManager"] }
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
# Delivers sync sign-ins back to the app through the `mtgc://` scheme.
|
|
tauri-plugin-deep-link = "2"
|