(I'm sorting/renaming folders...)
Does the AHK v2 source code indicate the AHK v2 alpha version number somewhere?
In AHK v1, you can see it in ahkversion.h.
Otherwise, are there any tips?
E.g. I could search for the presence/absence of built-in functions.
AHK v2 source code: identify version number
AHK v2 source code: identify version number
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
-
- Posts: 440
- Joined: 28 Apr 2018, 21:59
Re: AHK v2 source code: identify version number
You can check the AutoHotkey.chm file. It should show the version number
Re: AHK v2 source code: identify version number
Yes, but the source code zips don't contain a .chm file.
AutoHotkey GitHub links - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=81&t=62329
AutoHotkey GitHub links - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=81&t=62329
Last edited by jeeswg on 16 Oct 2019, 15:26, edited 1 time in total.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: AHK v2 source code: identify version number
its not in the source
looks like @Lexikos uploads a special version that has the number and commit punched in
looks like @Lexikos uploads a special version that has the number and commit punched in
Re: AHK v2 source code: identify version number
The release script sets the version number when building, and tags new versions in git.
Even if the latest release is v2.0-a106, the zip download might be v2.0-a106 plus some commits. If you clone the repository with git, you get the current head commit, every previous commit, and optionally the tags that show which commit corresponds to which release. git describe prints the last tag, but if there have been commits since that, it appends the number of commits and current commit hash.
GitHub Releases shows a zip download for each tag. In that case, you're getting the exact code for that version based on the tag. You know what version it is, because you downloaded it for that version (and it's probably in the filename).
If you just want the latest version number, download 2.0/version.txt.
Even if the latest release is v2.0-a106, the zip download might be v2.0-a106 plus some commits. If you clone the repository with git, you get the current head commit, every previous commit, and optionally the tags that show which commit corresponds to which release. git describe prints the last tag, but if there have been commits since that, it appends the number of commits and current commit hash.
GitHub Releases shows a zip download for each tag. In that case, you're getting the exact code for that version based on the tag. You know what version it is, because you downloaded it for that version (and it's probably in the filename).
If you just want the latest version number, download 2.0/version.txt.
Re: AHK v2 source code: identify version number
@lexikos: Thanks.
Some info re. the names of zip files:
To download official releases:
[recommended: e.g. AutoHotkey_L-2.0-a107.zip, AutoHotkey_L-1.1.31.01.zip]
Releases · Lexikos/AutoHotkey_L · GitHub
https://github.com/Lexikos/AutoHotkey_L/releases
To download the latest AHK v2 release:
[warning: the name is always 'AutoHotkey_L-alpha.zip']
GitHub - Lexikos/AutoHotkey_L at alpha
https://github.com/Lexikos/AutoHotkey_L/tree/alpha
To download the latest AHK v1.1 release:
[warning: the name is always 'AutoHotkey_L-master.zip']
GitHub - Lexikos/AutoHotkey_L: AutoHotkey - macro-creation and automation-oriented scripting utility for Windows.
https://github.com/Lexikos/AutoHotkey_L
To get the approximate version number for an 'AutoHotkey_L-alpha.zip' file or 'AutoHotkey_L-master.zip' file, you can check the modified date against one of:
AutoHotkey v2 alpha (UPDATES) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=37&t=2120
Changes & New Features | AutoHotkey
https://www.autohotkey.com/docs/AHKL_ChangeLog.htm
The differences between the file name patterns, only became clear to me, once I had collected all of the zips I'd previously downloaded, into one folder. Cheers.
I've updated the 'DOWNLOADS / RELEASES / REPOSITORIES' section, here:
AutoHotkey GitHub links - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=81&t=62329
Some info re. the names of zip files:
To download official releases:
[recommended: e.g. AutoHotkey_L-2.0-a107.zip, AutoHotkey_L-1.1.31.01.zip]
Releases · Lexikos/AutoHotkey_L · GitHub
https://github.com/Lexikos/AutoHotkey_L/releases
To download the latest AHK v2 release:
[warning: the name is always 'AutoHotkey_L-alpha.zip']
GitHub - Lexikos/AutoHotkey_L at alpha
https://github.com/Lexikos/AutoHotkey_L/tree/alpha
To download the latest AHK v1.1 release:
[warning: the name is always 'AutoHotkey_L-master.zip']
GitHub - Lexikos/AutoHotkey_L: AutoHotkey - macro-creation and automation-oriented scripting utility for Windows.
https://github.com/Lexikos/AutoHotkey_L
To get the approximate version number for an 'AutoHotkey_L-alpha.zip' file or 'AutoHotkey_L-master.zip' file, you can check the modified date against one of:
AutoHotkey v2 alpha (UPDATES) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=37&t=2120
Changes & New Features | AutoHotkey
https://www.autohotkey.com/docs/AHKL_ChangeLog.htm
The differences between the file name patterns, only became clear to me, once I had collected all of the zips I'd previously downloaded, into one folder. Cheers.
I've updated the 'DOWNLOADS / RELEASES / REPOSITORIES' section, here:
AutoHotkey GitHub links - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=81&t=62329
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Who is online
Users browsing this forum: bobstoner289, Draken and 59 guests