release: 1.1.0
Release / Cria a release (push) Canceled after 0s
Release / CLI (linux-aarch64) (push) Canceled after 0s
Release / CLI (linux-x86_64) (push) Canceled after 0s
Release / CLI (macos-aarch64) (push) Canceled after 0s
Release / CLI (macos-x86_64) (push) Canceled after 0s
Release / CLI (windows-x86_64) (push) Canceled after 0s
Release / App desktop (linux-x86_64) (push) Canceled after 0s
Release / App desktop (macos-aarch64) (push) Canceled after 0s
Release / App desktop (macos-x86_64) (push) Canceled after 0s
Release / App desktop (windows-x86_64) (push) Canceled after 0s
Release / Publica a release (push) Canceled after 0s

This commit is contained in:
Lucas Rayan committed 2026-10-20 13:36:18 -03:00
1 parent 5e43fa6d20
commit b4a85722a6
28 files changed
+706 -160

No files matched your search

+8 -2
View File
@@ -139,6 +139,7 @@ fn configuracoes_antigas_ganham_os_valores_padrao_novos() {
settings::save(&settings::Settings {
theme: "light".into(),
lang: "en".into(),
ui_lang: Some("en".into()),
notify: false,
maps: true,
})
@@ -167,7 +168,10 @@ fn notificacao_chama_o_notify_send() {
std::fs::set_permissions(&script, std::fs::Permissions::from_mode(0o755)).unwrap();
let old = std::env::var("PATH").unwrap_or_default();
std::env::set_var("PATH", format!("{}:{old}", bin.path().display()));
notify::send("Guará: varredura concluída", "7 arquivos");
notify::send(notify::Notice::ScanDone {
count: 7,
target: "disco".into(),
});
for _ in 0..100 {
if marker.exists() && !std::fs::read(&marker).unwrap().is_empty() {
break;
@@ -176,8 +180,10 @@ fn notificacao_chama_o_notify_send() {
}
std::env::set_var("PATH", old);
let got = String::from_utf8(std::fs::read(&marker).unwrap()).unwrap();
assert!(got.contains("Guará: "), "{got}");
assert!(
got.contains("Guará: varredura concluída") && got.contains("7 arquivos"),
got.contains("7 arquivo(s) encontrados em disco.")
|| got.contains("7 file(s) found in disco."),
"{got}"
);
}