From 35435e856d9924696bf46b665b119891db268a14 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Wed, 31 May 2023 18:06:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8F=91=E5=B8=83=E8=BD=AF?= =?UTF-8?q?=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PublishSite/PublishForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PublishSite/PublishForm.cs b/PublishSite/PublishForm.cs index d6438a1c..72c52afe 100644 --- a/PublishSite/PublishForm.cs +++ b/PublishSite/PublishForm.cs @@ -949,7 +949,7 @@ namespace PublishSite await Task.Delay(2000); //解压到发布的目录 - string expandCommand = $"Expand-Archive -Path '{filePath}' -DestinationPath '{desTinationFoder}' -Force"; + string expandCommand = $"Expand-Archive -Path '{Path.Combine("C:\\", storeTempName)}' -DestinationPath '{desTinationFoder}' -Force"; using (var cmd = client.CreateCommand($"powershell.exe {expandCommand}"))