将WPF clickonce应用程序发布到github

问题描述 投票:0回答:1

我已将我的wpf项目发布到dir publish并且它受源代码控制(github)所以我想添加一个下载链接到我的readme.md并根据:Is it possible to offer a ClickOnce installer on Github?我应该在我的降价中添加这个:

[Download the app](https://rawgithub.com/jphellemons/downloadyoutube/master/publish/setup.exe "Download the app")

我在第二个发布步骤中添加了https://rawgithub.com/jphellemons/DownloadYouTube/master/publish/

但这不起作用。我错过了什么步骤?它可能与错误https://stackoverflow.com/questions/28157811/publish-click-once-to-github有关

感谢vilicvane的评论我有这个工作setup.exe下载链接https://github.com/jphellemons/DownloadYouTube/blob/master/DownloadYouTube/publish/setup.exe?raw=true

但是setup.exe引用了错误的.application文件...

尝试下载'https://rawgithub.com/jphellemons/DownloadYouTube/master/publish/DownloadYouTube.application'时出错。

我见过一个外部托管blob的工作方法:https://github.com/Code52/carnac所以没有办法把所有内容保存在github上?

wpf github clickonce
1个回答
0
投票

您可以使用RawGit URL,该URL在响应中放置正确的Content-Type标头。例:

https://cdn.rawgit.com/Microsoft/RESX-Unused-Finder/master/publish/ResxUnusedFinder.application

(编辑)RawGit正在关闭。我不知道使用正确的Content-Type提供.application文件的替代方法。我已经搬到了自己的主持人那里。

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.