diff --git a/.nuget/versioninfo.ps1 b/.nuget/versioninfo.ps1 new file mode 100644 index 0000000..545abd7 --- /dev/null +++ b/.nuget/versioninfo.ps1 @@ -0,0 +1,6 @@ +param( +[string]$version +) +$versionComma = $version.Replace(".", ",") +$files = 'Texassemble\texassemble.rc', 'Texconv\Texconv.rc', 'Texdiag\texdiag.rc' +foreach ($file in $files) { (Get-Content $file).replace('1,0,0,0', $versionComma).replace('1.0.0.0', $version) | Set-Content $file } diff --git a/Texassemble/texassemble.rc b/Texassemble/texassemble.rc index 5208ce0..4000de9 100644 --- a/Texassemble/texassemble.rc +++ b/Texassemble/texassemble.rc @@ -1,12 +1,13 @@ // Microsoft Visual C++ generated resource script. // + #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #define IDC_STATIC -1 -#include +#include @@ -14,13 +15,11 @@ #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// -// English (U.S.) resources +// English (United States) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) -#ifdef _WIN32 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US #pragma code_page(1252) -#endif //_WIN32 ///////////////////////////////////////////////////////////////////////////// // @@ -31,6 +30,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US // remains consistent on all systems. IDI_MAIN_ICON ICON "directx.ico" + #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // @@ -59,7 +59,46 @@ END #endif // APSTUDIO_INVOKED -#endif // English (U.S.) resources + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 1,0,0,0 + PRODUCTVERSION 1,0,0,0 + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x1L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", "Microsoft Corp" + VALUE "FileDescription", "Texture assembler command-line tool" + VALUE "FileVersion", "1.0.0.0" + VALUE "InternalName", "texassemble.exe" + VALUE "LegalCopyright", "Copyright (c) Microsoft Corp." + VALUE "OriginalFilename", "texassemble.exe" + VALUE "ProductName", "DirectXTex" + VALUE "ProductVersion", "1.0.0.0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END + +#endif // English (United States) resources ///////////////////////////////////////////////////////////////////////////// diff --git a/Texconv/Texconv.rc b/Texconv/Texconv.rc index 5208ce0..e030300 100644 --- a/Texconv/Texconv.rc +++ b/Texconv/Texconv.rc @@ -1,12 +1,13 @@ // Microsoft Visual C++ generated resource script. // + #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #define IDC_STATIC -1 -#include +#include @@ -14,13 +15,11 @@ #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// -// English (U.S.) resources +// English (United States) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) -#ifdef _WIN32 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US #pragma code_page(1252) -#endif //_WIN32 ///////////////////////////////////////////////////////////////////////////// // @@ -31,6 +30,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US // remains consistent on all systems. IDI_MAIN_ICON ICON "directx.ico" + #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // @@ -59,7 +59,46 @@ END #endif // APSTUDIO_INVOKED -#endif // English (U.S.) resources + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 1,0,0,0 + PRODUCTVERSION 1,0,0,0 + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x1L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", "Microsoft Corp" + VALUE "FileDescription", "Texture conversion command-line tool" + VALUE "FileVersion", "1.0.0.0" + VALUE "InternalName", "texconv.exe" + VALUE "LegalCopyright", "Copyright (c) Microsoft Corp." + VALUE "OriginalFilename", "texconv.exe" + VALUE "ProductName", "DirectXTex" + VALUE "ProductVersion", "1.0.0.0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END + +#endif // English (United States) resources ///////////////////////////////////////////////////////////////////////////// diff --git a/Texdiag/texdiag.rc b/Texdiag/texdiag.rc index 5208ce0..81f3784 100644 --- a/Texdiag/texdiag.rc +++ b/Texdiag/texdiag.rc @@ -1,12 +1,13 @@ // Microsoft Visual C++ generated resource script. // + #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #define IDC_STATIC -1 -#include +#include @@ -14,13 +15,11 @@ #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// -// English (U.S.) resources +// English (United States) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) -#ifdef _WIN32 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US #pragma code_page(1252) -#endif //_WIN32 ///////////////////////////////////////////////////////////////////////////// // @@ -31,6 +30,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US // remains consistent on all systems. IDI_MAIN_ICON ICON "directx.ico" + #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // @@ -59,7 +59,46 @@ END #endif // APSTUDIO_INVOKED -#endif // English (U.S.) resources + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 1,0,0,0 + PRODUCTVERSION 1,0,0,0 + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x1L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", "Microsoft Corp" + VALUE "FileDescription", "Texture debugger command-line tool" + VALUE "FileVersion", "1.0.0.0" + VALUE "InternalName", "texdiag.exe" + VALUE "LegalCopyright", "Copyright (c) Microsoft Corp." + VALUE "OriginalFilename", "texdiag.exe" + VALUE "ProductName", "DirectXTex" + VALUE "ProductVersion", "1.0.0.0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END + +#endif // English (United States) resources /////////////////////////////////////////////////////////////////////////////