Skip to content

Commit ab3e3d7

Browse files
authored
fix(desktop): stabilize Windows user data migration (#1021)
* fix(desktop): guide windows user data migration safely * fix(desktop): lock packaged Windows data paths to one root * fix(desktop): repair Windows uninstall local data cleanup * fix(desktop): stabilize Windows user data migration * fix(desktop): use Windows path semantics for user data
1 parent 6eeee7c commit ab3e3d7

13 files changed

Lines changed: 1327 additions & 101 deletions

apps/desktop/build/win-installer-lang.nsh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,33 @@ LangString Lang_SelectUserDataDir 2052 "选择 Nexu 本地数据目录"
1919
LangString Lang_ErrorUserDataEmpty 1033 "User data directory cannot be empty."
2020
LangString Lang_ErrorUserDataEmpty 2052 "本地数据目录不能为空。"
2121

22+
LangString Lang_ErrorUserDataTargetNonEmpty 1033 "The selected data directory already contains files. Choose an empty folder, or choose a parent folder and let Nexu create a ${DEFAULT_USER_DATA_DIR_NAME} folder inside it."
23+
LangString Lang_ErrorUserDataTargetNonEmpty 2052 "所选数据目录中已包含文件。请选择空目录,或选择一个父目录,让 Nexu 在其中创建 ${DEFAULT_USER_DATA_DIR_NAME} 目录。"
24+
25+
LangString Lang_MigrationTitle 1033 "Existing data migration"
26+
LangString Lang_MigrationTitle 2052 "现有数据迁移"
27+
28+
LangString Lang_MigrationSubtitle 1033 "Choose how Nexu should handle data from the previous location"
29+
LangString Lang_MigrationSubtitle 2052 "选择 Nexu 如何处理旧位置中的数据"
30+
31+
LangString Lang_MigrationHelp 1033 "Nexu found existing local data in the previous directory. Choose how to use the new directory on first launch."
32+
LangString Lang_MigrationHelp 2052 "Nexu 在旧目录中发现了现有本地数据。请选择首次启动时如何使用新的数据目录。"
33+
34+
LangString Lang_MigrationOldDirLabel 1033 "Previous data directory"
35+
LangString Lang_MigrationOldDirLabel 2052 "旧数据目录"
36+
37+
LangString Lang_MigrationNewDirLabel 1033 "New data directory"
38+
LangString Lang_MigrationNewDirLabel 2052 "新数据目录"
39+
40+
LangString Lang_MigrationMoveOption 1033 "Move data to the new directory and clear the old folder"
41+
LangString Lang_MigrationMoveOption 2052 "将数据移动到新目录并清理旧目录"
42+
43+
LangString Lang_MigrationCopyOption 1033 "Copy missing files to the new directory and keep the old folder"
44+
LangString Lang_MigrationCopyOption 2052 "将缺失文件复制到新目录并保留旧目录"
45+
46+
LangString Lang_MigrationNoopOption 1033 "Do not migrate old data"
47+
LangString Lang_MigrationNoopOption 2052 "不迁移旧数据"
48+
2249
LangString Lang_ErrorAppRunning 1033 "Nexu is currently running. Please quit the app before continuing the installation."
2350
LangString Lang_ErrorAppRunning 2052 "Nexu 当前正在运行。请先退出应用后再继续安装。"
2451

@@ -58,6 +85,9 @@ LangString Lang_UninstallOptionsHelp 2052 "默认卸载只会移除应用。你
5885
LangString Lang_UninstallDeleteLocalDataCheckbox 1033 "Also delete Nexu local data from this device"
5986
LangString Lang_UninstallDeleteLocalDataCheckbox 2052 "同时删除此设备上的 Nexu 本地数据"
6087

88+
LangString Lang_UninstallDeleteLocalDataPathLabel 1033 "Local data directory to delete:"
89+
LangString Lang_UninstallDeleteLocalDataPathLabel 2052 "将删除的本地数据目录:"
90+
6191
LangString Lang_StatusInstallStart 1033 "Preparing installation"
6292
LangString Lang_StatusInstallStart 2052 "正在准备安装"
6393

0 commit comments

Comments
 (0)