部署 CodeArts Deploy-原生命令Compress-Archive打包时包含反斜杠“\”:处理方法

时间:2025-02-12 15:02:16

处理方法

  1. 构建任务使用如下脚本进行构建打包:
    12345
    nuget restore msbuild /p:OutputPath=../buildResult/Release/bin powershell Invoke-WebRequest -UseBasicParsing https://www.7-zip.org/a/7z1900-x64.exe -OutFile ./7zip.exe7zip.exe /S"C:/Program Files/7-Zip/7z.exe" a ./archive.zip ./buildResult/Release/bin/*
  2. 自定义打包请使用7-Zip打包工具进行打包。
support.huaweicloud.com/deployman_faq/deployman_faq_1228.html