Browse Source

VC++版本中,使用文件说明代替git commit id

Jeff 1 month ago
parent
commit
42201eb435
1 changed files with 8 additions and 4 deletions
  1. 8 4
      gitver/gitver/gitver.cpp

+ 8 - 4
gitver/gitver/gitver.cpp

@@ -231,17 +231,21 @@ int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
 			//strValue = StartProcess(NULL, "cmd /c git rev-parse HEAD", NULL);
 			//strValue.Replace(_T("\n"),_T(""));
 
-			_stprintf_s(szValue, "VALUE \"OriginalFilename\", \"%s.exe\"", g_szFolderName);
+			//_stprintf_s(szValue, "VALUE \"OriginalFilename\", \"%s.exe\"", g_szFolderName);
+			//vtOldContent.push_back(szValue);
+
+			//_stprintf_s(szValue, "VALUE \"OriginalFilename\", \"%s\"", strValue.GetString());
+			//vtNewContent.push_back(szValue);
+
+			_stprintf_s(szValue, "VALUE \"FileDescription\", \"TODO: <Îļþ˵Ã÷>\"");
 			vtOldContent.push_back(szValue);
 
-			_stprintf_s(szValue, "VALUE \"OriginalFilename\", \"%s\"", strValue.GetString());
+			_stprintf_s(szValue, "VALUE \"FileDescription\", \"%s\"", strValue.GetString());
 			vtNewContent.push_back(szValue);
 #endif
-
 		}
 		else if ( nCodeType == 2 )
 		{
-            
 #ifdef _DEBUG
             SetCurrentDirectory(_T("F:\\cfg\\Moka_CShare_FactoryTool\\FactoryTool_CShare"));
             _stprintf_s(szResFile, _T("%s\\Properties\\AssemblyInfo.cs"), _T("F:\\cfg\\Moka_CShare_FactoryTool\\FactoryTool_CShare"));