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
#!/bin/sh
set -xe
runs=("x86_64-pc-windows-gnu" "x86_64-unknown-linux-gnu")
for i in ${runs[@]}
do
rustup target add $i &> /dev/null
done
cd command
cargo fmt
cargo clippy --all-features $(printf -- "--target %s " ${runs[@]})
cd src-tauri
cargo fmt
cargo clippy --all-features $(printf -- "--target %s " ${runs[@]})
cd ../../config
cargo fmt
cargo clippy --all-features $(printf -- "--target %s " ${runs[@]})
cd ../data
cargo fmt
cargo clippy --all-features $(printf -- "--target %s " ${runs[@]})
cd ../victim
cargo fmt
payload="../build.rs" cargo clippy --all-features $(printf -- "--target %s " ${runs[@]})