How to know what openfl and lime version from export file?


#1

Hi, I have lost track with openfl and lime version of my old project.

Can we know the openfl, lime and other library version from the export result? I have flash and html5 export result.

Thanks for the help.


#2

Perhaps we could go by date. Do you know how old the project is, or when you may have last updated?


#3

Yes, it is what I think of for last solution. So there is no way we can know the version from export?


#4

There a defines with the library versions inside the debug.hxml / release.hxml files, in case you don’t just have the bin folder, but also the haxe folder that’s generated next to it:

-main ApplicationMain 
-cp C:/HaxeToolkit/haxe/lib/flixel/git
-D flixel=4.2.1
-cp C:/HaxeToolkit/haxe/lib/openfl/3,6,1
-D openfl=3.6.1
-cp C:/HaxeToolkit/haxe/lib/lime/2,9,1
-D lime=2.9.1
[...]

#5

If you only have the generated JavaScript files, Capabilities.version returns the OpenFL version in the string, however dead-code-elimination may likely remove that field if you were not referencing it :slight_smile:

Otherwise, there may be some things we can use to guess, if you have a ballpark idea of what version it might be


#6

Ah yes, you’re right. Thank you for the information.