巧克力包失败
Chocolatey Package Failing
尝试为 ARM RVDS 4.1 创建 Chocolatey 程序包时失败,我不确定问题出在哪里。我相信我要么设置了 chocolateyinstall.ps1
不正确,要么 setup.exe
在工具文件夹中。
这是我在 cmd 中得到的错误:https://ibb.co/KmDPxcF
这是chocolateyinstall.ps1
:https://ibb.co/yR7ysqR
这里是.nuspec
:https://ibb.co/hBM3xn9
下面是 tools
文件夹的内部结构:https://ibb.co/8NGXPNW
我可以不使用环境变量作为 chocolateyinstall.ps1
中的文件位置吗?或者这是一个不同的问题?
我也怀疑我可能用错了 silentArg
.
编辑:我找到了一些关于为什么会出现错误 access is denied
的信息,但这都与我没有的防病毒软件有关。
根据此处的文档:
https://chocolatey.org/docs/helpers-install-chocolatey-install-package#file-string
Full file path to native installer to run. If embedding in the package,
you can get it to the path with
"$(Split-Path -parent $MyInvocation.MyCommand.Definition)\INSTALLER_FILE"
In 0.10.1+, FileFullPath is an alias for File.
This can be a 32-bit or 64-bit file. This is mandatory in earlier versions
of Chocolatey, but optional if File64 has been provided.
您当前将目录传递给文件参数,这是不正确的。
尝试为 ARM RVDS 4.1 创建 Chocolatey 程序包时失败,我不确定问题出在哪里。我相信我要么设置了 chocolateyinstall.ps1
不正确,要么 setup.exe
在工具文件夹中。
这是我在 cmd 中得到的错误:https://ibb.co/KmDPxcF
这是chocolateyinstall.ps1
:https://ibb.co/yR7ysqR
这里是.nuspec
:https://ibb.co/hBM3xn9
下面是 tools
文件夹的内部结构:https://ibb.co/8NGXPNW
我可以不使用环境变量作为 chocolateyinstall.ps1
中的文件位置吗?或者这是一个不同的问题?
我也怀疑我可能用错了 silentArg
.
编辑:我找到了一些关于为什么会出现错误 access is denied
的信息,但这都与我没有的防病毒软件有关。
根据此处的文档:
https://chocolatey.org/docs/helpers-install-chocolatey-install-package#file-string
Full file path to native installer to run. If embedding in the package, you can get it to the path with "$(Split-Path -parent $MyInvocation.MyCommand.Definition)\INSTALLER_FILE"
In 0.10.1+, FileFullPath is an alias for File.
This can be a 32-bit or 64-bit file. This is mandatory in earlier versions of Chocolatey, but optional if File64 has been provided.
您当前将目录传递给文件参数,这是不正确的。