-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
50 lines (41 loc) · 929 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
root := justfile_directory()
install:
#!/bin/sh
cd {{root}}
just clean
mkdir -p temp/bltui-0.1.0
cp -r src temp/bltui-0.1.0
cp Cargo.toml temp/bltui-0.1.0
cp Cargo.lock temp/bltui-0.1.0
ln ./PKGBUILD ./temp/PKGBUILD
cd temp
tar czf bltui-0.1.0.tar.gz bltui-0.1.0
sed -i --follow-symlinks '$ d' PKGBUILD
makepkg -g >> PKGBUILD
makepkg --force -si
just clean
fmt:
cargo +nightly fmt
run *ARGS:
cargo run --release -- {{ ARGS }}
run-debug:
cargo run -- -dd -l
clean:
#cargo clean
rm -rf logs
rm -rf temp
rm -rf pkg
rm -f **/*.tar.gz
rm -f *.pkg.tar.zst
rm -rf bltui-*
check:
#!/bin/sh
cargo check -p bltui
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
cargo clippy -p bltui
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
cargo fmt
commit:
convco commit
test:
cargo nextest run