chore: add ci release workflows and docs
This commit is contained in:
1 parent
8957a1b90c
commit
a88206db2b
9 files changed
+262
-6
No files matched your search
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"$schema": "../gen/schemas/desktop-schema.json",
|
||||
"identifier": "default",
|
||||
"description": "Permissões padrão do aplicativo Transcript.",
|
||||
"windows": ["main"],
|
||||
|
||||
@@ -74,8 +74,10 @@ mod tests {
|
||||
#[test]
|
||||
fn default_snapshot_starts_idle() {
|
||||
let state = ManagedAppState::default();
|
||||
let snapshot = state.snapshot().expect("snapshot should work");
|
||||
|
||||
let snapshot = match state.snapshot() {
|
||||
Ok(snapshot) => snapshot,
|
||||
Err(error) => panic!("snapshot should work: {error}"),
|
||||
};
|
||||
assert_eq!(snapshot.recording_status, RecordingStatus::Idle);
|
||||
assert!(snapshot.transcript.text.is_empty());
|
||||
assert_eq!(snapshot.models.len(), 1);
|
||||
|
||||
@@ -55,7 +55,7 @@ mod tests {
|
||||
let mut session = RecordingSession::default();
|
||||
|
||||
assert_eq!(session.stop(), Err(AppError::NoActiveRecording));
|
||||
session.start().expect("start should work");
|
||||
assert_eq!(session.start(), Ok(()));
|
||||
assert_eq!(session.stop(), Ok(1));
|
||||
}
|
||||
}
|
||||
@@ -30,5 +30,8 @@ pub fn run() {
|
||||
ui_commands::save_settings
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("erro ao executar o aplicativo Tauri");
|
||||
.unwrap_or_else(|error| {
|
||||
eprintln!("erro ao executar o aplicativo Tauri: {error}");
|
||||
std::process::exit(1);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user