-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
42 lines (33 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
35
36
37
38
39
40
41
42
@_default:
just --list
run +ARGS='':
cargo run -- {{ ARGS }}
# Run with debug log
run-debug +ARGS='':
RUST_BACKTRACE=1 RUST_LOG=pacman_mirrorup=debug cargo run -- {{ ARGS }}
# Run test
test +CASES='':
cargo test {{ CASES }}
# Increase semver
bump-version VERSION:
just _bump-cargo {{ VERSION }}
just _bump-pkgbuild {{ VERSION }}
cargo check
@_bump-cargo VERSION:
cargo bump {{ VERSION }}
@_bump-pkgbuild VERSION:
sed -i -e "s/pkgver=.*/pkgver={{ VERSION }}/g" -e "s/pkgrel=.*/pkgrel=1/g" PKGBUILD.local
sed -i -e "s/pkgver=.*/pkgver={{ VERSION }}/g" -e "s/pkgrel=.*/pkgrel=1/g" PKGBUILD.aur
# Commit bump version and release
release VERSION:
git add Cargo.lock Cargo.toml PKGBUILD.aur PKGBUILD.local
git commit --message="chore(release): {{ VERSION }}"
git tag --sign --annotate {{ VERSION }} --message="version {{ VERSION }}" --edit
# Update and audit dependencies
update-deps:
cargo update
cargo audit
# Crate Arch package from GIT source
makepkg:
makepkg -p PKGBUILD.local
git co PKGBUILD.local