-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
75 lines (56 loc) · 2.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
set dotenv-filename := "pkg.env"
build *FLAGS:
cargo build {{FLAGS}}
test *FLAGS: build
cargo test {{FLAGS}}
# Install as crate with cargo, installed binary will be stored in: `~/.cargo/bin/`
install: install-termux-deps
cargo install --path .
# Install as termux deb package with apt, installed binary will be stored in: `/data/data/com.termux/files/usr/bin/`
install-deb: deb-native
apt install "./target/deb/packages/termux-clock_`just fetch-version`_{{ arch() }}.deb"
# Cross build for android targets
cross-build +ARGS:
dev/cross-build {{ARGS}}
# Cross build for all valid android targets. equivalent to: `cross-build --all`
cross-build-all:
dev/cross-build --all
# Build termux deb packages. Built packages are stored in: `target/deb/packages/`
deb +ARGS: man-gz
dev/deb {{ARGS}}
# Build termux deb package for native target (in case you are using Termux). Equivalent to: `deb --native`
deb-native: man-gz
dev/deb --native
# Build termux deb packages for all targets. Equivalent to: `deb --all`
deb-all: man-gz
dev/deb --all
# Install tool/s used in build process
install-tool +ARGS:
dev/install-tool {{ARGS}}
# Fetch package version and print it
fetch-version:
just install-tool yq >&2
yq eval ".package.version" Cargo.toml
# Bump version, make release branch, push it, make release tag and push it (Release workflow will create a new release from tag)
bump-version *ARGS:
dev/bump-version {{ ARGS }}
# Install package dependencies with apt
install-termux-deps:
pkg install $TERMUX_DEPS
# Generate termux deb packages manifests. Generated manifests are stored in: `target/deb/manifests/`
deb-manifest +ARGS:
dev/deb-manifest {{ARGS}} --deps "$TERMUX_DEPS"
# Path to scripts/common.bash file
common-file-path:
@echo "`realpath dev/common.bash`"
# Build manpages. Equivalent to: `cargo build-man`
man:
cargo build-man
# Build manpages compressed in gz format
man-gz: man
gzip target/manpages/* -k
# List unignored files using tree
tree:
tree --gitignore
# Clean cache
mod clean 'justmodules/clean.just'