简体   繁体   English

使用Processing(Java)设置.jar应用程序的版本

[英]Set the version of a .jar application using Processing (Java)

I've created an application (called Countdown) with Processing (Java). 我用Processing(Java)创建了一个应用程序(称为Countdown)。 I exported the application as a .jar-file. 我将应用程序导出为.jar文件。 If I run it on Mac OS X and click in the top left (on the titlebar) "About Countdown" it shows me a screen with the app's icon and underneath it says "Version 1.0 (1.0)". 如果我在Mac OS X上运行它并点击左上角(在标题栏上)“关于倒计时”,它会显示一个带有应用程序图标的屏幕,并在其下方显示“版本1.0(1.0)”。

这是截图

How do I change the version of the application in the Processing sketch? 如何在Processing sketch中更改应用程序的版本?

It's in the manifest of the jar. 它在jar的清单中。 You can edit your manifest following the instructions here . 您可以按照此处的说明编辑清单。

You can also use JarMatey to set the version number yourself upon export. 您也可以使用JarMatey在导出时自行设置版本号。

(Full disclosure: I'm the author of JarMatey.) (完全披露:我是JarMatey的作者。)

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM