windows – 使用Chocolatey创建自己的包
发布时间:2020-12-14 04:23:04 所属栏目:Windows 来源:网络整理
导读:我正在尝试使用名为 Listary的应用程序为Chocolatey创建一个包.我已按照 Chocolatey wiki和 here的说明进行操作. 我还在http://chocolatey.org创建了一个帐户并使用设置了API密钥 nuget setApiKey -Source 07004 其中 ltapiKey将替换为您的API密钥. 当我输入
我正在尝试使用名为
Listary的应用程序为Chocolatey创建一个包.我已按照
Chocolatey wiki和
here的说明进行操作.
我还在http://chocolatey.org创建了一个帐户并使用设置了API密钥
其中& ltapiKey>将替换为您的API密钥. 当我输入命令choco pack来创建NuGet包时,它说成功创建了包,但是当我测试我刚创建的包使用cinst Listary -source Listary.1.0.nupkg -force时它说 Invalid URI: The format of the URI could not be determined. Command 'install' failed (sometimes this indicates a partial failure). Additional info/packages: Listary 这就是我在Listary.nuspec文件中的内容. <?xml version="1.0" encoding="utf-8"?> <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <metadata> <id>Listary</id> <title>Listary</title> <version>1.0</version> <authors>Zhenheng Dai</authors> <owners>Zhenheng Dai</owners> <summary>Keep files at your fingertips. Listary is a unique search utility for Windows.</summary> <description>Listary is a unique search utility for Windows. Not only does it make file browsing truly flexible -- thanks to its multi-file managers support -- but the ultra-compact UI also redefines minimalism. The lightweight design doesn't stop it from providing various advanced features however,that may fit the needs of both casual and power users alike. All you have to do is just type the file name that you’re looking for,and Listary will display the search results at breakneck speed.</description> <projectUrl>http://www.listary.com</projectUrl> <tags>listary search find filemanager admin</tags> <copyright></copyright> <requireLicenseAcceptance>false</requireLicenseAcceptance> <releaseNotes></releaseNotes> </metadata> <files> <file src="tools**" target="tools" /> </files> </package> 而chocolateyInstall.ps1包含以下内容. $packageName = 'Listary' $installerType = 'exe' $url = 'http://www.listary.com/download/Listary.exe' $silentArgs = '/SP /VERYSILENT /NORESTART' Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url"
https://github.com/chocolatey/choco/wiki/CreatePackages#testing-your-package
(固定链接) 请注意,源不是nupkg,而是找到nupkg文件的目录. 在choco.exe(Chocolatey的转世)中,您只需指向一个nuspec或nupkg文件进行安装即可. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- windows – 如何获取LAN上所有IP地址(以及理想的设备名称)的
- windows-server-2003 – Windows Server 2003 – 黑屏,光标
- windows-mobile – Visual Studio 2010 Professional Beta
- windows-server-2012-r2 – 启用NLA后RDP错误“不支持请求的
- 窗口 – 在DWM组合的窗口上使用GDI绘制时可以防止撕裂伪影吗
- windows-server-2008 – 是否有Kerberos测试工具?
- Windows上的Git GUI:合并冲突
- 当线程A关闭套接字对的末尾时,为什么windows select()并不总
- Windows10系统下wsappx占用CPU资源过高?wsappx是什么?如何
- windows-server-2008 – 将组策略应用于远程桌面服务用户,但