27 lines
661 B
Bash
Executable File
27 lines
661 B
Bash
Executable File
#!/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":~/
|
|
|