如何配置 install4j 版本控制以允许稳定和 beta/alpha 升级路径

发布于 2024-12-17 13:21:37 字数 284 浏览 2 评论 0原文

我想看看是否有一种方法可以创建 install4j 配置,使我能够同时推送稳定版本和不稳定版本,以便大多数客户端都能获得稳定的升级路径(1.0.0->1.0.1) ->1.1->1.2->2.0 等)以及精选的“测试版”客户将获得更多前沿版本: (1.0.0->1.0.1-beta-1->1.0.1-beta2->1.1->1.2-beta1等)

我现在能想到的唯一方法是创建2个完全独立的安装程序和 update.xml 位置 - 也许这是唯一的方法

提前致谢 -一个-

I would like to see if there is a way to create an install4j configuration that allows me to push both stable and unstable releases in such a way that the majority of clients will get the stable upgrade path (1.0.0->1.0.1->1.1->1.2->2.0 etc) and a selection of "beta" customers will get more bleeding edge versions: (1.0.0->1.0.1-beta-1->1.0.1-beta2->1.1->1.2-beta1 etc)

The only way I can think of right now is by creating 2 completely independent installers and update.xml locations - maybe this is the only way

Thanks in advance
-A-

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南城旧梦 2024-12-24 13:21:37

您只需要两个不同版本的 updates.xml,它们可以从不同的 URL 下载。每当您发布稳定版本时,您只需更新 updates.xml 的稳定版本。

默认情况下,更新程序中的“检查更新”操作会下载在“安装程序”->“自动更新”选项选项卡上定义的 update.xml。

在此处输入图像描述

要使此位置变量,请添加带有变量名称的“从 Java 首选项存储中读取密钥”操作updatesUrl 到更新程序的启动节点,然后您可以在“检查更新”操作中使用 ${installer:updatesUrl}

然后,您可以在安装程序中使用“在 Java 首选项存储中设置密钥”操作将初始值设置为 ${compiler:sys.updatesUrl}。在您的应用程序中,您可以通过在自己的代码中写入值来轻松提供切换更新通道的方法。

You just need two different versions of updates.xml which are downloadable from different URLs. You just update the stable version of updates.xml whenever you release a stable version.

By default, the "Check for update" action in the updater downloads the update.xml that is defined on the Installer->Auto-Update options tab.

enter image description here

To make this location variable, add a "Read a key from the Java preference store" action with variable name updatesUrl to the startup node of the updater, then you can use ${installer:updatesUrl} in the "Check for update" action.

You then set the initial value to ${compiler:sys.updatesUrl} in the installer with a "Set a key in the Java preference store" action. In your application, you can easily offer a way to switch update channels by writing the value in your own code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文