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}"))