From 7740e579dbf9235731f6ea99db0a74e39d04e371 Mon Sep 17 00:00:00 2001 From: Mark Crossley Date: Wed, 9 Aug 2023 11:21:42 +0100 Subject: [PATCH] Update post build tasks Remove some unused variables --- CumulusMX/Alarm.cs | 2 +- CumulusMX/CumulusMX.csproj | 16 ++++++++++++++-- CumulusMX/DavisAirLink.cs | 2 -- CumulusMX/DavisStation.cs | 2 -- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/CumulusMX/Alarm.cs b/CumulusMX/Alarm.cs index f5638cde..4abfc13f 100644 --- a/CumulusMX/Alarm.cs +++ b/CumulusMX/Alarm.cs @@ -245,7 +245,7 @@ public bool DownTriggered } } - public void ClearAlarm() + public new void ClearAlarm() { if (Latch && upTriggered && DateTime.Now > UpTriggeredTime.AddHours(LatchHours)) doUpTriggered(false); diff --git a/CumulusMX/CumulusMX.csproj b/CumulusMX/CumulusMX.csproj index 4f808224..5cacc453 100644 --- a/CumulusMX/CumulusMX.csproj +++ b/CumulusMX/CumulusMX.csproj @@ -265,10 +265,22 @@ - echo Starting post-build tasks + echo. +echo Starting post-build tasks +echo Copy Updates.txt xcopy "$(ProjectDir)..\Updates.txt" "$(TargetDir)\Updates.txt" /D /-I /Q /Y +echo copy sqlite 32 xcopy "$(ProjectDir)\Libs\sqlite3-x86.dll" "$(TargetDir)\x86\sqlite3.dll" /D /-I /Q /Y -xcopy "$(ProjectDir)\Libs\sqlite3-x64.dll" "$(TargetDir)\x64\sqlite3.dll" /D /-I /Q /Y +echo copy sqlite 64 +xcopy "$(ProjectDir)\Libs\sqlite3-x64.dll" "$(TargetDir)\x64\sqlite3.dll" /D /-I /Q /Y +echo. +echo Update Distribution folder +echo copy MX exe +xcopy "$(TargetPath)" "$(SolutionDir)..\CumulusMX-Dist\CumulusMX" /D /-I /Q /Y +echo copy MX config +xcopy "$(TargetDir)CumulusMX.exe.config" "$(SolutionDir)..\CumulusMX-Dist\CumulusMX" /D /-I /Q /Y + +