|
@@ -215,9 +215,9 @@ int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
|
|
|
vtNewContent.push_back(szValue);
|
|
|
#endif
|
|
|
|
|
|
-#if 0
|
|
|
- strValue = StartProcess(NULL, "cmd /c git rev-parse HEAD", NULL);
|
|
|
- strValue.Replace(_T("\n"),_T(""));
|
|
|
+#if 1
|
|
|
+ //strValue = StartProcess(NULL, "cmd /c git rev-parse HEAD", NULL);
|
|
|
+ //strValue.Replace(_T("\n"),_T(""));
|
|
|
|
|
|
_stprintf_s(szValue, "VALUE \"OriginalFilename\", \"%s.exe\"", g_szFolderName);
|
|
|
vtOldContent.push_back(szValue);
|
|
@@ -229,12 +229,22 @@ int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
|
|
|
}
|
|
|
else if ( nCodeType == 2 )
|
|
|
{
|
|
|
+
|
|
|
_stprintf_s(szResFile, _T("%s\\Properties\\AssemblyInfo.cs"), g_szCurModuleDir);
|
|
|
+
|
|
|
+#if 0
|
|
|
// [assembly: AssemblyFileVersion("1.0.0.1")]
|
|
|
vtOldContent.push_back(_T("[assembly: AssemblyFileVersion(\"1.0.0.1\")]"));
|
|
|
|
|
|
_stprintf_s(szValue, _T("[assembly: AssemblyFileVersion(\"1.0.0.%s\")]"), strValue.GetString());
|
|
|
vtNewContent.push_back(szValue);
|
|
|
+#endif
|
|
|
+
|
|
|
+ // [assembly: AssemblyCopyright("")]
|
|
|
+ vtOldContent.push_back(_T("[assembly: AssemblyCopyright(\"\")]"));
|
|
|
+
|
|
|
+ _stprintf_s(szValue, _T("[assembly: AssemblyCopyright(\"%s\")]"), strValue.GetString());
|
|
|
+ vtNewContent.push_back(szValue);
|
|
|
}
|
|
|
|
|
|
// ¸ü»»ÄÚÈÝ;
|