mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
This commit introduces a new feature in the SettingsService to migrate user settings from the legacy Electron userData directory to the new shared data directory. The migration process checks for the existence of settings in both locations and handles the transfer of settings.json and credentials.json files if necessary. It also includes logging for successful migrations and any errors encountered during the process, ensuring a smooth transition for users upgrading from previous versions. Key changes: - Added `migrateFromLegacyElectronPath` method to handle migration logic. - Implemented platform-specific paths for legacy settings based on the operating system. - Enhanced error handling and logging for migration operations.