Bump app version to 0.5.1 and add auto-update support
- Implemented auto-update logic in `ScribeTopBar` with update notification and user interaction. - Integrated `@tauri-apps/plugin-updater` and `@tauri-apps/plugin-process` for updater functionality. - Added automatic migration feature with `autoMigrateElectron` support and UI feedback. - Refactored app architecture with new routing, components, and layout for better modularity. - Enhanced JSON response handling in API client for robust data parsing. - Updated locales to include new translations for update and migration-related UI.
This commit is contained in:
14
lib/tauri.ts
14
lib/tauri.ts
@@ -700,6 +700,20 @@ export async function importFromElectron(migrationFilePath: string): Promise<Mig
|
||||
return invoke<MigrationResult>('import_from_electron', {data: {migrationFilePath}});
|
||||
}
|
||||
|
||||
export interface AutoMigrationResult {
|
||||
migrated: boolean;
|
||||
userId: string | null;
|
||||
tokenMigrated: boolean;
|
||||
keyMigrated: boolean;
|
||||
pinMigrated: boolean;
|
||||
dbMigrated: boolean;
|
||||
error: string | null;
|
||||
}
|
||||
|
||||
export async function autoMigrateElectron(): Promise<AutoMigrationResult> {
|
||||
return invoke<AutoMigrationResult>('auto_migrate_electron');
|
||||
}
|
||||
|
||||
// ─── Window Management ──────────────────────────────────────
|
||||
|
||||
let loginWindowOpening = false;
|
||||
|
||||
Reference in New Issue
Block a user