diff --git a/app/main.dev.js b/app/main.dev.js index f7cf1baa4..f4cc30ea5 100644 --- a/app/main.dev.js +++ b/app/main.dev.js @@ -59,15 +59,19 @@ if (isProd && !prevVersion) { log.info("Transferring settings from previous Slippi Launcher install..."); - const oldSettingPath = path.join(oldAppDataPath, "Settings"); - const newSettingsPath = path.join(newAppDataPath, "Settings"); - fs.copyFileSync(oldSettingPath, newSettingsPath); - - const oldDolphinUserPath = path.join(oldAppDataPath, "dolphin", "User"); - const newDolphinUserPath = path.join(newAppDataPath, "dolphin", "User"); - fs.copySync(oldDolphinUserPath, newDolphinUserPath, { overwrite: true }); - - log.info("Done transferring settings."); + try { + const oldSettingPath = path.join(oldAppDataPath, "Settings"); + const newSettingsPath = path.join(newAppDataPath, "Settings"); + fs.copyFileSync(oldSettingPath, newSettingsPath); + + const oldDolphinUserPath = path.join(oldAppDataPath, "dolphin", "User"); + const newDolphinUserPath = path.join(newAppDataPath, "dolphin", "User"); + fs.copySync(oldDolphinUserPath, newDolphinUserPath, { overwrite: true }); + + log.info("Done transferring settings."); + } catch (err) { + log.warn("Failed to transfer settings. Maybe old version didn't exist?"); + } } const platform = process.platform; diff --git a/package.json b/package.json index 94a96f83c..f4d5322eb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "slippi-desktop-app", "productName": "Slippi Desktop App", - "version": "1.4.2", + "version": "1.4.3", "description": "Slippi Desktop App for browsing and playing replays.", "scripts": { "build": "concurrently \"yarn build-main\" \"yarn build-renderer\"",