简体   繁体   English

如何在 wingetcreate 中更新我的 Windows 应用程序包

[英]How to update my Windows application package in wingetcreate

I have a little problem while I want to update my package.我想更新我的包时遇到了一个小问题。 I'll explain this: I published my package.我会解释一下:我发布了我的包。 After that, I waited for 2-3 hours for my packages be in the microsoft/winget-pkgs in GitHub.之后,我等了 2-3 个小时,我的包才出现在 GitHub 的microsoft/winget-pkgs中。 My branch merged successfully, It works on any Windows devices but, I created a new version of my application: v3.6.2.我的分支成功合并,它适用于任何 Windows 设备,但是,我创建了我的应用程序的新版本:v3.6.2。 The version that I released it was v3.5.7.我发布的版本是 v3.5.7。 So now, I can't publish that version because this error is showing when I execute this cmd command: wingetcreate update <packageIdentifier> -u https://github.com/YourUsername/yourrepository/releases/download/3.6.2/yourapp.exe --version 3.6.2 -t ghp_YourGithubPersonalAccessTokenWith_public_repo_setting .所以现在,我无法发布该版本,因为当我执行此 cmd 命令时会显示此错误: wingetcreate update <packageIdentifier> -u https://github.com/YourUsername/yourrepository/releases/download/3.6.2/yourapp.exe --version 3.6.2 -t ghp_YourGithubPersonalAccessTokenWith_public_repo_setting

If you want an image, i'll show you the image (My Windows is French btw): Here the image .如果你想要一张图片,我会给你看这张图片(顺便说一句,我的 Windows 是法语):这里是图片 But as you can see, the red is the error and I tried everything, I searched on Google and didn't find anything that fixed my problem, I tried the examples showed above when you only execute this command: wingetcreate.exe update but still the same error message that you can see on the image .但是正如你所看到的,红色是error ,我尝试了一切,我在谷歌上搜索并没有找到任何解决我的问题的东西,当你只执行这个命令时,我尝试了上面显示的示例: wingetcreate.exe update但仍然您可以在图像上看到相同的错误消息。

So I decided to take the third example but same, without success.所以我决定采取第三个例子,但同样,没有成功。 Is there a way that could update my WinGet package?有没有办法更新我的 WinGet 包? Thanks!谢谢!

I don't know if this could help but I can give you some info: it's inno, the achitecture is Neutral .我不知道这是否有帮助,但我可以给你一些信息:它是 inno,建筑是Neutral

IMPORTANT NOTE : FIX HERE The last answer works but if you type the command winget search <YourApp> , it will keep the previous version and if you install, it would install the previous one... How to fix that because it is litteraly NOT updating but doing nothing .重要提示FIX HERE最后一个答案有效,但如果您键入命令winget search <YourApp> ,它将保留以前的版本,如果您安装,它将安装以前的版本...如何解决这个问题,因为它不是更新但无所事事

It's hard for me to know exactly what the issue is without knowing the contents of the manifest or the metadata of the installer.如果不知道清单的内容或安装程序的元数据,我很难确切地知道问题出在哪里。 My gut feeling is that there is an architecture mismatch when trying to match the installer you provided with the existing installer that is currently specified in the existing manifest.我的直觉是,在尝试将您提供的安装程序与现有清单中当前指定的现有安装程序匹配时,存在架构不匹配。 To override the detected architecture you can use the '|'要覆盖检测到的架构,您可以使用“|” symbol followed by the desired architecture.符号后跟所需的架构。 Here is an example:这是一个例子:

wingetcreate update <packageIdentifier> -u "https://github.com/YourUsername/yourrepository/releases/download/3.6.2/yourapp.exe|x64" --version 3.6.2 -t <githubToken>

If that doesn't work for you, I would encourage you to post an issue on the GitHub repository so we can help you further.如果这对您不起作用,我鼓励您在GitHub 存储库上发布问题,以便我们进一步帮助您。

Okay, I found the way: You take the code that the previous answer contains, and add -s :好的,我找到了方法:您获取上一个答案包含的代码,然后添加-s

wingetcreate update -s <packageIdentifier> -u "https://github.com/YourUsername/yourrepository/releases/download/3.6.2/yourapp.exe|x64" --version 3.6.2 -t <githubToken>

It will publish the application on GitHub for verification, in the command prompt you put (replace the sentence in the quotes with your current manifest file):它将在 GitHub 上发布应用程序以进行验证,在您输入的命令提示符中(将引号中的句子替换为您当前的清单文件):

winget validate --manifest "PathToYourManifestShowedInGreenAfterPublishing"

When the validation on GitHub is done, it's done and normally it should work.当 GitHub 上的验证完成后,它就完成了,通常它应该可以工作。

NOTE: Verification on GitHub can take 2 to 3 hours or even 4 hours.注意:在 GitHub 上的验证可能需要 2 到 3 个小时甚至 4 个小时。 Be patient!要有耐心! (I hope) (我希望)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何为我的 C# windows 应用程序创建 CMD 命令? - How to create a CMD command ifor my C# windows application? 控制台应用程序:如何更新显示? - Console application: How to update the display? 如果我有Console.ReadLine(),Windows schduler将如何反应? 在我的控制台应用程序中 - how will windows schduler react if i have Console.ReadLine(); inside my console application 如何使用cmd在Windows中打包ANE文件? - How to package ANE file in windows using cmd? 如何使用python在Windows上安装Git包 - How to install Git package on WIndows with python 如何测量 windows 端子上的 package 安装? - How to measure package installation on windows terminal? Sencha touch:在Windows 7中使用CMD创建我的第一个应用程序时遇到的问题 - Sencha touch: Issues with creating my first application using the CMD in windows 7 如何使用TideSDK杀死Windows应用程序? - How to kill a windows application using TideSDK? 如何从 Java 应用程序运行 Windows 命令提示符? - How can I run windows command promt from java application? 如何退出Java应用程序启动所在的Windows命令提示符 - How to exit the windows command prompt in which a java application got started
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM