• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Add a version string file into download zip

HWS

Well-known member
#1
I just had problems to find the version of XenForo within the downloaded folder (yes, I know, I can always look into the installer php file).

Just want to suggest to add a "version.txt" file into the package or even add the version string into the "INSTALL-UPGRADE.txt" file to make it easier for people like me, who do not install immediately after the download.

Thanks!
 

oman

Well-known member
#2
The version is usually included on the name of the zip file:



Even if you extract it it will still be there.
 

HWS

Well-known member
#3
I am at an Apple using Safari. The zip file will be extended and deleted automatically after the download and the resulting "xenforo" folder does not show any version number.

I now, I may be able to change that behavior and keep the zip file itself, however having a version string available easily in the download folder would be a real benefit.
 

Chris D

XenForo developer
Staff member
#4
I use an Apple, but I hate Safari so I only use Chrome...

If you download a file called:

xenforo_1.2.1-licensestring.zip

Are you saying Safari takes it upon itself to automatically extract that into a directory simply called xenforo? How? If anything, I would expect it to extract it to a directory called xenforo_1.2.1-licensestring.

I don't do anything automatically with Chrome and ZIP files but when I click a downloaded ZIP file, it does automatically extract it, but into a directory of the same name as the zip file.

So, then I can just search finder for xenforo_1.2.1 and I find what I'm looking for.

Odd behaviour you have configured there...
 

HWS

Well-known member
#5
Are you saying Safari takes it upon itself to automatically extract that into a directory simply called xenforo? How? If anything, I would expect it to extract it to a directory called xenforo_1.2.1-licensestring.
That is not the case. It is extracted into a directory called "xenforo", because that is the name of the folder within the zip. The zip itself is automatically deleted.

But beside of all that, I would see it beneficial to have a place where the xenforo version can be read easily without having to open a browser.
 

Chris D

XenForo developer
Staff member
#7
There is no "xenforo" directory in the XenForo download.

upload_2013-8-28_12-24-46.png

Same in the full package.

Like I say, you have some weird configuration.

Your proposed solution is only beneficial if your computer doesn't do what it is supposed to by default :p
 

rellek

Well-known member
#8
No it's not a weird configuration, it's how stupid Safari actually is.

Safari extracts the contents of the zip file into a folder that is called after the name of the zip file. However, Safari assumes that the file name ends at the first point. So the folder is always "xenforo-1" (because the file name is "xenforo-1.2.1-licensestring.zip").
 

HWS

Well-known member
#9
Like I say, you have some weird configuration.
I use the default configuration.

Again, like I said, it would help in several situations if one can see the xenforo version number easily when working at the server (where it is installed) or the directory at the local computer where it has been extracted to.
 

Mike

XenForo developer
Staff member
#10
The version is always in library/XenForo/Application.php at the top - you should be able to view it in any text editor if you don't have the zip around.