-
Notifications
You must be signed in to change notification settings - Fork 0
/
Belabox.props
34 lines (34 loc) · 1.77 KB
/
Belabox.props
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
31
32
33
34
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VLAssetBehavior>PointToOutput</VLAssetBehavior>
<VLCleanBuildDirectory>True</VLCleanBuildDirectory>
<VLExportPath>$(MsBuildThisFileDirectory)..\..\vvvv\gamma-preview\Exports</VLExportPath>
<VLTargetOS>Linux</VLTargetOS>
<OutputType>Exe</OutputType>
<PlatformTarget>AnyCPU</PlatformTarget>
<TargetFramework>net6.0</TargetFramework>
<SourceFolder>C:\Users\joreg\OneDrive\Documents\vvvv\gamma-preview\Exports\Belabox</SourceFolder>
<DestFolder>Z:\Belabox</DestFolder>
</PropertyGroup>
<ItemGroup>
<FilesToCopy Include="$(SourceFolder)\**" />
</ItemGroup>
<Target Name="Deploy" AfterTargets="Publish">
<!-- copy all files from the source folder to the dest folder
that are newer or don't exist in the dest folder -->
<Message Importance="High" Text="Copying files to Raspberry PI..." />
<Copy SourceFiles="@(FilesToCopy)" DestinationFiles="@(FilesToCopy->'$(DestFolder)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="True">
<Output TaskParameter="CopiedFiles" ItemName="Copied" />
</Copy>
<ItemGroup>
<OutdatedFiles Include="$(DestFolder)\**" Exclude="@(Copied)" />
</ItemGroup>
<Message Importance="High" Text="Deleting files..." />
<Delete Files="@(OutdatedFiles)" />
<Message Importance="High" Text="Killing previous run..." />
<Exec Command="ssh vvvv@vvvvpi "pkill dotnet"" />
<Message Importance="High" Text="Startin process..." />
<Exec Command="ssh vvvv@vvvvpi "/home/vvvv/.dotnet/dotnet /home/vvvv/Belabox/Belabox.dll &> /dev/null &"" />
</Target>
</Project>