v1.3.10: 应用身份切换 cc.sincos.edc(彻底解决桌面名称); 移除尺寸标注与图元库自定义; 修复帮助中心空白与 Windows 更新包校验
This commit is contained in:
@@ -120,11 +120,11 @@ class _UpdateDialogState extends State<UpdateDialog> {
|
||||
|
||||
// 兼容两种打包方式:zip 根目录即程序文件,或多包一层 dist/。
|
||||
String srcDir = extractDir;
|
||||
if (!File('$extractDir\\sequence_diagram.exe').existsSync()) {
|
||||
if (File('$extractDir\\dist\\sequence_diagram.exe').existsSync()) {
|
||||
if (!File('$extractDir\\EasyDesignCollection.exe').existsSync()) {
|
||||
if (File('$extractDir\\dist\\EasyDesignCollection.exe').existsSync()) {
|
||||
srcDir = '$extractDir\\dist';
|
||||
} else {
|
||||
throw Exception('更新包内容不完整(未找到 sequence_diagram.exe)');
|
||||
throw Exception('更新包内容不完整(未找到 EasyDesignCollection.exe)');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -137,13 +137,13 @@ class _UpdateDialogState extends State<UpdateDialog> {
|
||||
File(batPath).writeAsStringSync(
|
||||
'@echo off\r\n'
|
||||
':wait\r\n'
|
||||
'tasklist /fi "IMAGENAME eq sequence_diagram.exe" | find /i "sequence_diagram.exe" >nul\r\n'
|
||||
'tasklist /fi "IMAGENAME eq EasyDesignCollection.exe" | find /i "EasyDesignCollection.exe" >nul\r\n'
|
||||
'if not errorlevel 1 (\r\n'
|
||||
' ping -n 1 -w 600 127.0.0.1 >nul\r\n'
|
||||
' goto wait\r\n'
|
||||
')\r\n'
|
||||
'xcopy /e /i /y /q "%~1\\*" "%~2\\"\r\n'
|
||||
'start "" "%~2\\sequence_diagram.exe"\r\n'
|
||||
'start "" "%~2\\EasyDesignCollection.exe"\r\n'
|
||||
'del "%~f0"\r\n',
|
||||
flush: true,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user