forked from domoticz/domoticz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.proj
27 lines (20 loc) · 1.06 KB
/
package.proj
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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="PackageDomoticz">
<!-- Files to include into the release zip -->
<ItemGroup>
<DomoticzInstaller Include="$(MSBuildStartupDirectory)\msbuild\WindowsInstaller\DomoticzSetup*.exe"/>
<ZipContents Include="@(DomoticzInstaller)"/>
<ZipContents Include="$(MSBuildStartupDirectory)\History.txt"/>
<ZipContents Include="$(MSBuildStartupDirectory)\msbuild\WindowsInstaller\Readme.txt"/>
</ItemGroup>
<PropertyGroup>
<ZipFile>$(MSBuildStartupDirectory)\domoticz_windows_x86.zip</ZipFile>
</PropertyGroup>
<!-- Copy the files into the current dir for flattening the zip contents -->
<Copy SourceFiles="@(ZipContents)"
DestinationFolder="."/>
<!-- Create the zip file into the project root directory -->
<Exec Command=""C:\Program Files\7-Zip\7z.exe" a $(ZipFile) @(ZipContents -> '%(FileName)%(Extension)', ' ')"/>
</Target>
</Project>