-
Notifications
You must be signed in to change notification settings - Fork 4
/
QuickText.vcxproj.user
30 lines (22 loc) · 1.24 KB
/
QuickText.vcxproj.user
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<Project>
<!--
Rename PROJECTNAME to the same as the *.vcxproj file in your project.
Or, import into that file by adding before the last closing tag:
<Import Project="PROJECTNAME.vcxproj.user"/>
Then, call with:
msbuild /target:zip
You can customize the ZIP program by setting the environment variable:
set ZIPCMD=zip
set ZIPCMD=7z a -tzip
-->
<Target Name="Zip" DependsOnTargets="Build">
<PropertyGroup>
<ZipCmd Condition="'$(ZIPCMD)' == ''">zip</ZipCmd>
</PropertyGroup>
<Exec Command="if not exist $(OutDir)$(TargetName) mkdir $(OutDir)$(TargetName)"/>
<Exec Command="copy $(OutDir)$(TargetName)$(TargetExt) $(OutDir)$(TargetName)"/>
<Exec Command="copy Config\QuickText.default.ini $(OutDir)$(TargetName)"/>
<Exec Command="for /f %%i in ('powershell -NoProfile -Command "(Get-Item $(OutDir)$(TargetName)$(TargetExt)).VersionInfo.ProductVersion"') do del $(OutDir)$(TargetName)-v%%i-$(Platform).zip"/>
<Exec Command="for /f %%i in ('powershell -NoProfile -Command "(Get-Item $(OutDir)$(TargetName)$(TargetExt)).VersionInfo.ProductVersion"') do cd $(OutDir)$(TargetName) %26%26 $(ZIPCMD) -r ..\$(TargetName)-v%%i-$(Platform).zip *"/>
</Target>
</Project>