-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
34 lines (27 loc) · 1.05 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env -S just --justfile
default:
@{{just_executable()}} --list
build:
dotnet build
# Builds the release executable
publish CONFIG="Release":
dotnet clean
dotnet publish -c {{CONFIG}} -r linux-arm --self-contained true \
-p:PublishReadyToRun=true \
-p:PublishSingleFile=true \
-p:IncludeNativeLibrariesForSelfExtract=true
# Builds the DEBUG executable
publish-debug:
dotnet clean
dotnet publish -c Debug -r linux-arm --self-contained true \
-p:PublishReadyToRun=true \
-p:PublishSingleFile=true \
-p:IncludeNativeLibrariesForSelfExtract=true
# Add key variable to enable using non-default key to connect to the RPI
key := ""
# Build and copy to the RPI
deploy CONFIG="Release":
rsync -avz -e "$(test -n "{{key}}" && echo "ssh -i {{key}}" || echo "ssh")" --progress src/BitChopp.Main/bin/{{CONFIG}}/net8.0/linux-arm/publish/* [email protected]:/home/pi/BitChopp
# Runs the app on the RPI
run-remote:
ssh $(test -n "{{key}}" && echo "-i {{key}}") [email protected] -C ./BitChopp.sh