-
Notifications
You must be signed in to change notification settings - Fork 2
/
justfile
29 lines (19 loc) · 835 Bytes
/
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
target := "arm-unknown-linux-gnueabihf"
# target := armv7-unknown-linux-gnueabihf
remote := "[email protected]:"
default:
@just --choose
check-server:
cargo check --bin inputshare-server
build-server:
cross build --bin inputshare-server --target={{target}} --release
upload-binary:
scp ./target/{{target}}/release/inputshare-server {{remote}}
build-upload: build-server upload-binary
sync-wsl:
@rsync --out-format='updating %n' --include='**.gitignore' --exclude='/.git' --filter=':- .gitignore' --delete-after -hra . ~/InputShareUSB
build-server-wsl: sync-wsl
cd ~/InputShareUSB && cross build --bin inputshare-server --target={{target}} --release
upload-binary-wsl:
scp ~/InputShareUSB/target/{{target}}/release/inputshare-server {{remote}}
build-upload-wsl: build-server-wsl upload-binary-wsl