diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2016-07-12 21:05:33 +1000 |
---|---|---|
committer | James Ross-Gowan <rossymiles@gmail.com> | 2016-07-12 21:05:33 +1000 |
commit | bf2e2bf3e871f491347d50acf0a0e9ce8d9ac859 (patch) | |
tree | b2de1c386040a18316c3fce60777ff51132c864e /osdep | |
parent | 43e811cb4ba57758281b8f21c5a09a965e3a2f5d (diff) | |
download | mpv-bf2e2bf3e871f491347d50acf0a0e9ce8d9ac859.tar.bz2 mpv-bf2e2bf3e871f491347d50acf0a0e9ce8d9ac859.tar.xz |
win32: mpv.rc: re-add version info
For some reason, the lack of version info was preventing mpv from
appearing in the Default Programs dialog. Re-add it, but don't set the
string version numbers from version.h, because that's what was causing
trouble when the version info was removed. Like the binary version
numbers, these are now hardcoded to 2.0.0.0, which probably doesn't
matter.
The new version info block is also slightly different to the old one. It
fills out all the binary VERSIONINFO fields and makes better use of
macros. It also removes the \000 line terminators from the string
version info, since as far as I can tell, this was just cargo-culting
for an old broken version of the Microsoft resource compiler, and
binutils' windres terminates the strings properly without them.
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/mpv.rc | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/osdep/mpv.rc b/osdep/mpv.rc index 638d020b36..67c09f4f2c 100644 --- a/osdep/mpv.rc +++ b/osdep/mpv.rc @@ -19,13 +19,31 @@ #include <winver.h> -1 VERSIONINFO -FILEVERSION 2,0,0,0 -PRODUCTVERSION 2,0,0,0 -FILEOS VOS__WINDOWS32 -FILETYPE VFT_APP -{ -} +VS_VERSION_INFO VERSIONINFO + FILEVERSION 2, 0, 0, 0 + PRODUCTVERSION 2, 0, 0, 0 + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK + FILEFLAGS 0 + FILEOS VOS__WINDOWS32 + FILETYPE VFT_APP + FILESUBTYPE 0 + { + BLOCK "StringFileInfo" { + BLOCK "000004b0" { + VALUE "Comments", "mpv is distributed under the terms of the GNU General Public License Version 2 or later." + VALUE "CompanyName", "mpv" + VALUE "FileDescription", "mpv" + VALUE "FileVersion", "2.0.0.0" + VALUE "LegalCopyright", "(C) 2000-2016 mpv/mplayer2/MPlayer" + VALUE "OriginalFilename", "mpv.exe" + VALUE "ProductName", "mpv" + VALUE "ProductVersion", "2.0.0.0" + } + } + BLOCK "VarFileInfo" { + VALUE "Translation", 0, 1200 + } + } IDI_ICON1 ICON DISCARDABLE "etc/mpv-icon.ico" |