1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00
bitwarden-browser/scripts/make-versioninfo.ps1

34 lines
686 B
PowerShell
Raw Normal View History

2019-03-14 22:15:55 +01:00
$major,$minor,$patch = $env:PACKAGE_VERSION.split('.')
2018-05-23 05:50:00 +02:00
$versionInfo = @"
1 VERSIONINFO
FILEVERSION $major,$minor,$patch,0
PRODUCTVERSION $major,$minor,$patch,0
FILEOS 0x40004
FILETYPE 0x1
{
BLOCK "StringFileInfo"
{
BLOCK "040904b0"
{
2020-02-19 04:36:04 +01:00
VALUE "CompanyName", "Bitwarden Inc."
2018-05-23 05:50:00 +02:00
VALUE "ProductName", "Bitwarden"
VALUE "FileDescription", "Bitwarden CLI"
2019-03-14 22:15:55 +01:00
VALUE "FileVersion", "$env:PACKAGE_VERSION"
VALUE "ProductVersion", "$env:PACKAGE_VERSION"
2018-05-23 05:50:00 +02:00
VALUE "OriginalFilename", "bw.exe"
VALUE "InternalName", "bw"
2020-02-19 04:36:04 +01:00
VALUE "LegalCopyright", "Copyright Bitwarden Inc."
2018-05-23 05:50:00 +02:00
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x0409 0x04B0
}
}
"@
$versionInfo | Out-File ./version-info.rc