Corrige CI e release da v0.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

- CI (Windows/macOS): imports e `parse_mac` usados só no código Linux agora
  são `#[cfg(target_os = "linux")]` (e `Duration`/`Instant` também em `test`),
  eliminando os unused que viravam erro com `-D warnings` fora do Linux.
- Release (RPM): `productName` passa a "Sabia" (ASCII) — o bundler de rpm
  recusa o acento; janela e interface seguem exibindo "Sabiá". Igual ao Guará.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-10-23 13:01:37 -03:00
1 parent 791538c9d9
commit dab86d1fa7
3 files changed
+9 -5

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Sabiá",
"productName": "Sabia",
"version": "0.1.0",
"identifier": "dev.sabia.app",
"build": {
+7 -2
View File
@@ -10,7 +10,9 @@ use crate::crack::{self, CrackReport};
use crate::doctor::{self, DoctorReport};
use crate::error::{Result, SabiaError};
use crate::handshake::Handshake;
use crate::iface::{self, Interface, Mode};
#[cfg(target_os = "linux")]
use crate::iface::Mode;
use crate::iface::{self, Interface};
use crate::netlink::{self, ChannelInfo};
use crate::pcapreader::PcapReader;
use crate::pcapwriter::PcapWriter;
@@ -21,7 +23,9 @@ use std::collections::HashMap;
use std::path::{Path, PathBuf};
use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
use std::sync::{Arc, Mutex};
use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH};
#[cfg(any(target_os = "linux", test))]
use std::time::{Duration, Instant};
use std::time::{SystemTime, UNIX_EPOCH};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ScanOptions {
@@ -774,6 +778,7 @@ fn append_audit(
let _ = log.record(action, target, &text);
}
#[cfg(target_os = "linux")]
fn parse_mac(text: &str) -> Result<[u8; 6]> {
crate::dot11::parse_mac(text)
.ok_or_else(|| SabiaError::InvalidInput(format!("MAC inválido: {text}")))
+1 -2
View File
@@ -5,9 +5,8 @@
//! usa `AF_PACKET` e só existe no Linux. O chamador (engine) impõe limites de
//! quantidade e intervalo e registra a ação na trilha de auditoria.
use crate::error::Result;
#[cfg(target_os = "linux")]
use crate::error::SabiaError;
use crate::error::{Result, SabiaError};
pub const BROADCAST: [u8; 6] = [0xff; 6];