如何配置 install4j 版本控制以允许稳定和 beta/alpha 升级路径
我想看看是否有一种方法可以创建 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您只需要两个不同版本的
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 ofupdates.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.
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.