mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-11 15:59:08 +01:00
Add newest.txt file generation to post-build step
Related to issue #531.
This commit is contained in:
parent
aa6fa36fae
commit
bb09eba9db
@ -1172,7 +1172,19 @@
|
|||||||
</BootstrapperPackage>
|
</BootstrapperPackage>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<Target Name="PostBuildMacros">
|
||||||
|
<GetAssemblyIdentity AssemblyFiles="$(TargetPath)">
|
||||||
|
<Output TaskParameter="Assemblies" ItemName="Targets" />
|
||||||
|
</GetAssemblyIdentity>
|
||||||
|
<ItemGroup>
|
||||||
|
<VersionNumber Include="$([System.Text.RegularExpressions.Regex]::Replace("%(Targets.Version)", "^(.+?)(\.0+)$", "$1"))" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Target>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<PostBuildEventDependsOn>
|
||||||
|
$(PostBuildEventDependsOn);
|
||||||
|
PostBuildMacros;
|
||||||
|
</PostBuildEventDependsOn>
|
||||||
<PostBuildEvent>rem Copy compiled l18n assemblies to alt folder
|
<PostBuildEvent>rem Copy compiled l18n assemblies to alt folder
|
||||||
GOTO END
|
GOTO END
|
||||||
if not exist $(TargetDir)Lang mkdir $(TargetDir)Lang
|
if not exist $(TargetDir)Lang mkdir $(TargetDir)Lang
|
||||||
@ -1184,7 +1196,10 @@ for %25%25l in (%25langs%25) do (
|
|||||||
xcopy $(TargetDir)%25%25l $(TargetDir)Lang\%25%25l\ /s /y
|
xcopy $(TargetDir)%25%25l $(TargetDir)Lang\%25%25l\ /s /y
|
||||||
)
|
)
|
||||||
|
|
||||||
:END</PostBuildEvent>
|
echo @(VersionNumber)> $(ProjectDir)\newest.txt
|
||||||
|
|
||||||
|
:END
|
||||||
|
</PostBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user