Mac 上的应用程序版本控制
我有一个为 mac 编写的 java 应用程序并创建了一个 .app 文件。现在我想做的是,一旦双击该应用程序启动或运行,我想要一个脚本来检查更新服务器上此 .app 的版本。(我有新 .app 文件的服务器路径)。 请告诉我如何实现这一目标。
提前致谢
I have a java application that i have coded for mac and created a .app file of it.Now what i want to do is as soon as the application is double clicked to start or is run, i want a script to check for a updated version of this .app on the server.(i have the server path of the new .app file).
Please tell me how can i achieve this.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道这是否正是您所追求的,但是...我正在 OS X 上以 .dmg(包含 .app 文件夹)形式发送 Java 应用程序。
这就是我正在做的:启动后,应用程序联系我的服务器,如果有新版本可用,它会告诉用户。但应用程序不会自动升级。
请注意,您必须非常小心自动升级:如果您弄乱了版本并发布了损坏的更新,那么事情很快就会变得非常糟糕。最近Skype就出现了这样的情况,情况确实相当混乱。
I don't know if it's exactly what you're after but... I'm shipping a Java app as a .dmg (containing a .app folder) on OS X.
Here's what I'm doing: upon starting, the application contacts my server and if there's a new version available, it tells that to the user. But the application ain't upgrading itself automatically.
Note that you have to be very careful with automatic upgrades: if you mess a release and hand out a broken update then things can go very bad very quickly. This happened to Skype recently and the situation was really quite messy.
您应该查看 Java Web Start MacOS X
You should look into Java Web Start for MacOS X