From 566cc4c017760b88b9dbbb350740c40844afac64 Mon Sep 17 00:00:00 2001 From: Aigio Liu Date: Mon, 18 Sep 2023 17:55:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Misc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../images/Square44x44Logo.scale-400.png | Bin 9020 -> 2587 bytes src/BD.WTTS.Client/Migrations/Migrations.cs | 17 ++++++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/res/windows/makepri/images/Square44x44Logo.scale-400.png b/res/windows/makepri/images/Square44x44Logo.scale-400.png index 8d9daa45da941ca72cbcb462634db42254140644..4d1fe40cd91dffe8674296937351af13141faf68 100644 GIT binary patch delta 2573 zcmV+o3i9>5Mw=9n8Gi!+005Y26l?$h00d`2O+f$vv5yPsX>6t-mzJyXCL94X>}647-IHYhD!O3xWuj~aQkQ(@*Ke$7Ev!bw-l zB|Ug3b;}r!#u=2&^otkvkrh{2-}sCd?~D{GeA+Qcm;93zntx6R2BobVe!UBlrvpXPj2C}zfSLhp+ z(*K_lCx+n+s(-yGgyRsT#R9mr4X3~|eC8{S^HFB#XY4-`a z#ePuzB$MV&bN2(p!C_$X60XvWZh!m$001a-QchCctwrL0-Q)6UTowob00?(UL_t(|+CJ@@30vC88^9BCaV4Ay_oZn6 zuBmmk9>nanE4zPP)0hH+@cqBYPEIBl*nK(ypPgSQZIdzl^3I!gh5-ozlK~?Xf97YC z?e*HjgUtI89=<-lzCJ#_AL}--HL;n(4w=w?9Ie>Dm8I(KaEc6sb^`w`ybS4+p-Ufs0FWV_wAyVu#iem&TW@XlsX z6wS2Ablbhr*O_m>eXzX;#i0jje~rL48}&vJt`@W7o#({CXf_HG-ec{Zf&H_c-*)Y2 zyPzs)bqoOi-u3V?oNcuo9fOg%QJ^`F&NRBi_HKs{x;Oi41GCxj@W9MlF2yno%cgc; z*RrDx#)+rg5b4s!bDYRe@A3SqDX_FuSY84-X;Th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*? z_swIjM?iWQDssy))Bs2gab@G6@MpwxjA%nron$wDNPld4F5}Gg3-W2561aNmSt+h6tu+t5KwQXISm;frcNWCH?rTx;*!)Ty3q6 za@r<6Gc(z1QGS0bI9!8r_<_@i$zA$YqwOiLw#u9N_!!Tx2n~z2IMdL-N{|2_f6>25 zR}f+RX>kA+um_e`b;AfCUchqSrAn^2M;#MXYesKqNXaS8ymK%=@NIG?snFFyC@Uji zOjPUSDaei0k?a8Rfx2v!xVm#fo#&RuO0$^ziMMPTi@$Z>uSPAtsN|I2Av(r9YvN(u zJ0bOsA($7j4QZuS+sBhw=7M4_Ch z3n`Oh2JHKKsW*QqX*gll3PRG=MQ=t8kT=|GW=ciN01m|W$>k}Y83V&0NH5Ft0j^l( zg7!1GPasjjs!9o!I;~K@WK3ktpgZOyg6*&R4c5bPS%*(W%M+5_t!KH5Rk9wD+3%b* zCFu&=`CHZUTv9((u93-T<-x}%w(U4Qe50!NUF(P{d(()wzTZZe=?p^|V7qbr0~43! zKMU)gsyNftWHsXbf-ydXoP}^Q-EPM3UNZV+J?{UtOY&dX do!;&Tu49S;vzfQ`f2|l8Nl{smDj|LU{{w%Jyh#86 diff --git a/src/BD.WTTS.Client/Migrations/Migrations.cs b/src/BD.WTTS.Client/Migrations/Migrations.cs index ba4df84325e..832150713c2 100644 --- a/src/BD.WTTS.Client/Migrations/Migrations.cs +++ b/src/BD.WTTS.Client/Migrations/Migrations.cs @@ -67,16 +67,23 @@ static void MoveDirByScripts(string rootPath, string? newDirName = null) { try { - var oldPath = Path.Combine(rootPath, DirName_Scripts); - if (Directory.Exists(oldPath)) + var newPath = Path.Combine(rootPath, + AssemblyInfo.Plugins, + AssemblyInfo.Accelerator, + newDirName ?? DirName_Scripts); + if (!Directory.Exists(newPath)) { - var newPath = Path.Combine(rootPath, AssemblyInfo.Plugins, AssemblyInfo.Accelerator, newDirName ?? DirName_Scripts); - Directory.Move(oldPath, newPath); + var oldPath = Path.Combine(rootPath, DirName_Scripts); + if (Directory.Exists(oldPath)) + { + Directory.Move(oldPath, newPath); + } } } catch (Exception e) { - Log.Error(nameof(Migrations), e, "MoveDirByScriptsFail, rootPath: {rootPath}", rootPath); + Log.Error(nameof(Migrations), e, + "MoveDirByScriptsFail, rootPath: {rootPath}", rootPath); } } } \ No newline at end of file