From 0d0c6642ee6769527ef6e968d38ce84fe307f98b Mon Sep 17 00:00:00 2001 From: Changhua Date: Sat, 25 Feb 2023 18:04:40 +0800 Subject: [PATCH] Add post build event --- WeChatFerry.sln | 6 ++++++ spy/Spy.vcxproj | 9 +++++---- wcf/wcf.vcxproj | 3 ++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/WeChatFerry.sln b/WeChatFerry.sln index 1e8e445..dde3cd4 100644 --- a/WeChatFerry.sln +++ b/WeChatFerry.sln @@ -22,15 +22,21 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wcf", "wcf\wcf.vcxproj", "{ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4DE80B82-5F6A-4C4C-9D16-1574308110FA}.Debug|x86.ActiveCfg = Debug|Win32 + {4DE80B82-5F6A-4C4C-9D16-1574308110FA}.Debug|x86.Build.0 = Debug|Win32 {4DE80B82-5F6A-4C4C-9D16-1574308110FA}.Release|x86.ActiveCfg = Release|Win32 {4DE80B82-5F6A-4C4C-9D16-1574308110FA}.Release|x86.Build.0 = Release|Win32 + {ABFCB647-137F-478B-A73E-F0B1E3ADC215}.Debug|x86.ActiveCfg = Release|Win32 {ABFCB647-137F-478B-A73E-F0B1E3ADC215}.Release|x86.ActiveCfg = Release|Win32 {ABFCB647-137F-478B-A73E-F0B1E3ADC215}.Release|x86.Build.0 = Release|Win32 + {B11ADC6F-20DA-4DEF-A8A0-60374427D4C6}.Debug|x86.ActiveCfg = Release|Win32 {B11ADC6F-20DA-4DEF-A8A0-60374427D4C6}.Release|x86.ActiveCfg = Release|Win32 {B11ADC6F-20DA-4DEF-A8A0-60374427D4C6}.Release|x86.Build.0 = Release|Win32 + {02747CE0-AD9F-4812-B019-FCF9867F7514}.Debug|x86.ActiveCfg = Release|Win32 {02747CE0-AD9F-4812-B019-FCF9867F7514}.Release|x86.ActiveCfg = Release|Win32 {02747CE0-AD9F-4812-B019-FCF9867F7514}.Release|x86.Build.0 = Release|Win32 EndGlobalSection diff --git a/spy/Spy.vcxproj b/spy/Spy.vcxproj index a1caf55..abcb135 100644 --- a/spy/Spy.vcxproj +++ b/spy/Spy.vcxproj @@ -120,9 +120,9 @@ spy.def - cd $(SolutionDir) -md Out -xcopy /y $(OutDir)$(TargetFileName) Out + if not exist $(SolutionDir)Out md $(SolutionDir)Out +xcopy /y $(OutDir)$(TargetFileName) $(SolutionDir)Out +xcopy /y $(OutDir)$(TargetFileName) $(SolutionDir)python\wcferry Copy spy.dll @@ -164,7 +164,8 @@ C:\Tools\nanopb\protoc --nanopb_out=. wcf.proto if not exist $(SolutionDir)Out md $(SolutionDir)Out -xcopy /y $(OutDir)$(TargetFileName) $(SolutionDir)Out +xcopy /y $(OutDir)$(TargetFileName) $(SolutionDir)Out +xcopy /y $(OutDir)$(TargetFileName) $(SolutionDir)python\wcferry Copy spy.dll diff --git a/wcf/wcf.vcxproj b/wcf/wcf.vcxproj index 27db5e2..983bee2 100644 --- a/wcf/wcf.vcxproj +++ b/wcf/wcf.vcxproj @@ -118,7 +118,8 @@ true - xcopy /y $(OutDir)$(TargetFileName) $(SolutionDir)Out + xcopy /y $(OutDir)$(TargetFileName) $(SolutionDir)Out +xcopy /y $(OutDir)$(TargetFileName) $(SolutionDir)python\wcferry Copy files