内部版本字符串:修订间差异
跳转到导航
跳转到搜索
小
文本替换 - 替换“<code>”为“{{code|”
正义羊-JRJSheep(讨论 | 贡献) 无编辑摘要 |
正义羊-JRJSheep(讨论 | 贡献) 小 (文本替换 - 替换“<code>”为“{{code|”) 标签:移动版编辑 移动版网页编辑 |
||
| 第 19 行: | 第 19 行: | ||
A build tag is composed of the following components: | A build tag is composed of the following components: | ||
* | * {{code|version</code> is the full version number, i.e. {{code|6.3.9600.16384</code>. The major and minor version or the delta number is often omitted, in which case there is no default implied value. | ||
* | * {{code|arch</code> is the target platform identifier suffixed by the build type ({{code|fre</code> for free/retail builds, {{code|chk</code> for checked/debug builds). This part is often left out when it is not considered necessary to identify the exact compile. Known target platform identifiers are as follows: | ||
** | **{{code|x86</code> for 32-bit x86 | ||
** | **{{code|x64</code>, {{code|amd64</code> for 64-bit x86 | ||
** | **{{code|axp64</code> for 64-bit DEC Alpha | ||
** | **{{code|ia64</code> for Itanium | ||
** | **{{code|woa</code>, {{code|arm</code> for ARM32 | ||
** | **{{code|arm64</code> for ARM64 | ||
* | * {{code|lab</code> is the name of the branch or [[build lab]] that the build was compiled from. For private builds, this is followed (or replaced for early build tags) by the username of the account that initiated the build in parentheses; this can sometimes be an official build service account, like {{code|wincbld</code> (Windows Central Build Account) or {{code|wmbla</code> (Windows Main Build Lab Account). Private builds compiled after the migration to Git use the dummy {{code|GitEnlistment</code> lab name. | ||
* | * {{code|timestamp</code> is the compilation date and time in the {{code|YYMMDD-hhmm</code> format. | ||
The build tag may be followed by a hash of activation data from the registry, although it is not considered to be a part of the build tag itself. | The build tag may be followed by a hash of activation data from the registry, although it is not considered to be a part of the build tag itself. | ||
Applying the above logic, the build tag | Applying the above logic, the build tag {{code|[[Windows 10 Build 10240.16384.x86fre.th1.150709-1700|10.0.10240.16384.x86fre.th1.150709-1700]]</code> is the free/retail 32-bit x86 build of version 10.0.10240.16384, which was compiled from the {{code|th1</code> branch on 9 July 2015 17:00 ([[w:Pacific Time Zone|PT]]). | ||
== Location == | == Location == | ||
The build tag of the currently running version of Windows is located in the registry under the | The build tag of the currently running version of Windows is located in the registry under the {{code|HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion</code>. Depending on the exact version being used, there are two string values named {{code|BuildLab</code> and {{code|BuildLabEx</code>. However, it might not necessarily match the tag reported in winver in certain [[Windows 10]] updates, e.g. [[Windows 10 v1909|Windows 10 November 2019 Update]] and all updates since the [[Windows 10 v2004|May 2020 Update]], as the build number is artificially increased by a separate mechanism in order to distinguish between the updates. | ||
Since [[Windows Server 2022]], the build tag can also be found under the | Since [[Windows Server 2022]], the build tag can also be found under the {{code|OSClient</code> and {{code|ShellCommon</code> subkeys within {{code|HKEY_LOCAL_MACHINE\SYSTEM\Software\Microsoft\BuildLayers</code>. | ||
In older versions of Windows, the build tag is inserted into the file version information for system files. Due to the implementation of [[w:reproducible builds|reproducible builds]] during the development of [[Windows 10 v1703|Windows 10 Creators Update]], most files now only contain a dummy build tag with the full version number, but a placeholder lab and timestamp component, i.e. | In older versions of Windows, the build tag is inserted into the file version information for system files. Due to the implementation of [[w:reproducible builds|reproducible builds]] during the development of [[Windows 10 v1703|Windows 10 Creators Update]], most files now only contain a dummy build tag with the full version number, but a placeholder lab and timestamp component, i.e. {{code|(WinBuild.160101.0800)</code>, as including build timestamps breaks the deterministic premise that compiling the same source code would always result in the exact same binary no matter what. | ||
== 另行参阅 == | == 另行参阅 == | ||
{{See also|内部版本实验室|水印}} | {{See also|内部版本实验室|水印}} | ||