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