Innovenergy_trunk/csharp/App/EmuMeterDriver/debug.sh

20 lines
511 B
Bash

#!/bin/bash
csproj="EmuMeter.csproj"
exe="EmuMeter"
#remote="10.2.1.6"
remote="10.2.2.152"
netVersion="net6.0"
platform="linux-arm"
config="Release"
host="root@$remote"
dir="/opt/innovenergy/$exe"
set -e
dotnet publish "$csproj" -c $config -r $platform -p:SuppressTrimmAnalysisWarnings=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:DebugType=None -p:DebugSymbols=false --self-contained true
rsync -av "bin/$config/$netVersion/$platform/publish/" "$host:$dir"
#clear
#ssh "$host" "$dir/$exe"