CI / Formatação e clippy (push) Successful in 20s
CI / Auditoria de dependências (push) Successful in 9s
CI / Compila o app desktop (Linux) (push) Successful in 1m55s
Release / Cria a release (push) Successful in 5s
CI / Testes (Linux) (push) Successful in 4m25s
Release / CLI (linux-aarch64) (push) Successful in 2m18s
Release / CLI (linux-x86_64) (push) Successful in 2m51s
Release / App desktop (linux-aarch64) (push) Successful in 9m19s
Release / App desktop (linux-x86_64) (push) Failing after 11m11s
Release / App desktop (windows) (push) Successful in 10m27s
Release / Monta o latest.json (push) Skipped
15 lines
598 B
Rust
15 lines
598 B
Rust
fn main() {
|
|
println!("cargo:rerun-if-changed=../../../logo.png");
|
|
let _ = std::fs::copy("../../../logo.png", "../ui/logo.png");
|
|
#[cfg(windows)]
|
|
{
|
|
// Ler discos brutos no Windows exige administrador: o manifesto pede elevação (UAC).
|
|
let manifest = include_str!("windows-app-manifest.xml");
|
|
let attrs = tauri_build::Attributes::new()
|
|
.windows_attributes(tauri_build::WindowsAttributes::new().app_manifest(manifest));
|
|
tauri_build::try_build(attrs).expect("falha no tauri-build");
|
|
}
|
|
#[cfg(not(windows))]
|
|
tauri_build::build();
|
|
}
|