mirror of
https://github.com/bitwarden/browser
synced 2025-01-05 23:20:31 +01:00
make version info script
This commit is contained in:
parent
7ed7068fa9
commit
186783ba6d
33
make-versioninfo.ps1
Normal file
33
make-versioninfo.ps1
Normal file
@ -0,0 +1,33 @@
|
||||
$major,$minor,$patch = $env:package_version.split('.')
|
||||
|
||||
$versionInfo = @"
|
||||
|
||||
1 VERSIONINFO
|
||||
FILEVERSION $major,$minor,$patch,0
|
||||
PRODUCTVERSION $major,$minor,$patch,0
|
||||
FILEOS 0x40004
|
||||
FILETYPE 0x1
|
||||
{
|
||||
BLOCK "StringFileInfo"
|
||||
{
|
||||
BLOCK "040904b0"
|
||||
{
|
||||
VALUE "CompanyName", "8bit Solutions LLC"
|
||||
VALUE "ProductName", "Bitwarden"
|
||||
VALUE "FileDescription", "Bitwarden CLI"
|
||||
VALUE "FileVersion", "$env:package_version"
|
||||
VALUE "ProductVersion", "$env:package_version"
|
||||
VALUE "OriginalFilename", "bw.exe"
|
||||
VALUE "InternalName", "bw"
|
||||
VALUE "LegalCopyright", "Copyright 8bit Solutions LLC"
|
||||
}
|
||||
}
|
||||
|
||||
BLOCK "VarFileInfo"
|
||||
{
|
||||
VALUE "Translation", 0x0409 0x04B0
|
||||
}
|
||||
}
|
||||
"@
|
||||
|
||||
$versionInfo | Out-File ./version-info.rc
|
Loading…
Reference in New Issue
Block a user