From 11e85f304a81cbd4a595fac6aa78b1ce6c2c302e Mon Sep 17 00:00:00 2001 From: atef Date: Fri, 10 Apr 2026 15:19:18 +0200 Subject: [PATCH] deploy script for IO project to deploy and test --- csharp/App/GpioTestingProject/deploy.sh | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 csharp/App/GpioTestingProject/deploy.sh diff --git a/csharp/App/GpioTestingProject/deploy.sh b/csharp/App/GpioTestingProject/deploy.sh new file mode 100755 index 000000000..3208a0c80 --- /dev/null +++ b/csharp/App/GpioTestingProject/deploy.sh @@ -0,0 +1,27 @@ +#!/bin/bash +dotnet_version='net6.0' +salimax_ip="$1" +is_release="$2" # Pass --release if this is a real release +username='inesco' +root_password='Sodistore0918425' + + DOTNET="/snap/dotnet-sdk_60/current/dotnet" + + +set -e + +echo -e "\n============================ Build ============================\n" + +"$DOTNET" publish \ + ./GpioTestingProject.csproj \ + -p:PublishTrimmed=false \ + -c Release \ + -r linux-arm64 + +echo -e "\n============================ Deploy ============================\n" + +rsync -v \ + --exclude '*.pdb' \ + ./bin/Release/$dotnet_version/linux-arm64/publish/* \ + $username@"$salimax_ip":~/ + \ No newline at end of file