Cmd signtool:在AppVeyor上解释为文件的选项

Cmd signtool:在AppVeyor上解释为文件的选项,cmd,appveyor,signtool,Cmd,Appveyor,Signtool,我在AppVeyor版本(Visual Studio 2019)上有一种非常奇怪的行为:在shell脚本(cmd.exe)中,当使用signtool对我的应用程序进行签名时,所有选项都被解释为文件(signtool可以同时对多个文件进行签名) 行“$WINDOWSKITBIN\\signtool.exe”签名/trhttp://timestamp.digicert.com /td sha256/fd sha256/n“Jan Gerner”/v/debug“build\\TypeWorld.ex

我在AppVeyor版本(Visual Studio 2019)上有一种非常奇怪的行为:在shell脚本(cmd.exe)中,当使用
signtool
对我的应用程序进行签名时,所有选项都被解释为文件(
signtool
可以同时对多个文件进行签名)

“$WINDOWSKITBIN\\signtool.exe”签名/trhttp://timestamp.digicert.com /td sha256/fd sha256/n“Jan Gerner”/v/debug“build\\TypeWorld.exe”
生成:

Successfully signed: build\TypeWorld.exe
Number of files successfully Signed: 1
Number of errors: 10
SignTool Error: File not found: C:/Program Files/Git/tr
SignTool Error: File not found: http://timestamp.digicert.com
SignTool Error: File not found: C:/Program Files/Git/td
SignTool Error: File not found: sha256
SignTool Error: File not found: C:/Program Files/Git/fd
SignTool Error: File not found: SHA256
SignTool Error: File not found: N:/
SignTool Error: File not found: Jan Gerner
SignTool Error: File not found: V:/
SignTool Error: File not found: C:/Program Files/Git/debug
想要的文件
TypeWorld.exe
被签名,只是没有所有的选项,所有的选项都被解释为要签名的文件,而这些文件显然找不到

我已经确认转义的反斜杠和文件夹变量是正确的

此行
echo“$WINDOWSKITBIN\\signtool.exe”签名/trhttp://timestamp.digicert.com /td sha256/fd sha256/n“Jan Gerner”/v/debug“build\\TypeWorld.exe”

生成预期的呈现:
C:\Program Files(x86)\Windows Kits\10\bin\10.0.19041.0\x86\signtool.exe sign/trhttp://timestamp.digicert.com /td sha256/fd sha256/n Jan Gerner/v/debug build\TypeWorld.exe


我试着在PowerShell中运行同样的程序,结果也是一样的。

AppVeyor工作人员推荐的(也是通过电子邮件推荐的)没有任何帮助

最终的帮助是不要混合使用Windows和Linux(WSL)环境。在
appveyor.yml
中,我通过
sh
调用构建脚本(或在appveyor工作人员的推荐下,稍后调用
bash
):

相反,对于某些命令,最好保持简单,因此我将代码签名部分转换为一个好的旧Windows批处理文件:

build_script: 
    - wxPython/build/Windows/build-sign.bat
在批处理文件中,行
signtool.exe签名/trhttp://timestamp.digicert.com /td sha256/fd sha256/n“Jan Gerner”/v“build\\TypeWorld.exe”

执行良好。

请将完整的
appveyor.yml
(已编辑/删除敏感数据)发送至support@appveyor.com.I通过电子邮件发送。非常感谢及时回复啊,我明白了,邮件被困在周一的垃圾文件夹里!现在调查一下。
build_script: 
    - wxPython/build/Windows/build-sign.bat