Innovenergy_trunk/csharp/App/SchneiderMeterDriver/debug.sh

26 lines
653 B
Bash
Raw Normal View History

2024-06-04 13:28:17 +00:00
#!/bin/bash
csproj="SchneiderMeterDriver.csproj"
exe="SchneiderMeterDriver"
#remote="10.2.1.6"
remote="10.2.4.155"
platform="linux-arm"
2024-06-12 12:05:29 +00:00
netVersion="net6.0"
2024-06-04 13:28:17 +00:00
config="Release"
host="root@$remote"
2024-06-05 14:17:05 +00:00
dir="/opt/innovenergy/$exe"
2024-06-04 13:28:17 +00:00
set -e
2024-06-12 12:05:29 +00:00
# Detect the current platform
#if uname -m | grep -i 'arm' > /dev/null; then
#else
# platform="linux-x64"
#fi
2024-06-04 13:28:17 +00:00
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"