forked from blissd/fotema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
62 lines (51 loc) · 2.11 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
# SPDX-FileCopyrightText: © 2024 David Bliss
#
# SPDX-License-Identifier: GPL-3.0-or-later
[private]
default:
just --list --justfile {{ justfile() }}
fmt:
cargo fmt --verbose --all -- --check
clippy:
cargo clippy --all-targets --all-features -- -D warnings
# Run linters, such as the licence linter
lint:
reuse lint
flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest build-aux/app.fotema.Fotema.Devel.json
flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest build-aux/app.fotema.Fotema.json
#flatpak run --command=flatpak-builder-lint org.flatpak.Builder appstream flatpak_app/files/share/metainfo/app.fotema.Fotema.Devel.metainfo.xml
#flatpak run --command=flatpak-builder-lint org.flatpak.Builder repo fotema-origin
# Add licence information to all supported files
license:
reuse annotate \
--recursive \
--skip-unrecognised \
--skip-existing \
--copyright "David Bliss" \
--license "GPL-3.0-or-later" \
--year `date +%Y` \
--copyright-style spdx-symbol \
.
# Build and install a flatpak release version
release:
flatpak run org.flatpak.Builder --user --install --force-clean flatpak_app/release build-aux/app.fotema.Fotema.json
# Build and install flatpak development version
devel:
flatpak run org.flatpak.Builder --user --install --force-clean flatpak_app/devel build-aux/app.fotema.Fotema.Devel.json
# Created a vendors package that will be used by the flatpak-builder build for flathub.
# Use a separate _build_flathub directory because the meson version used by GNOME Builder
# clashes with the meson version installed natively.
dist:
rm -rf _build_flathub
meson setup _build_flathub
meson dist -C _build_flathub
# Install Fedora development dependencies
setup:
pipx install reuse
sudo dnf install -y libavformat-free-devel
sudo dnf install -y libavfilter-free-devel
sudo dnf install -y libavdevice-free-devel
sudo dnf install -y clang-libs
sudo dnf install -y clang-devel
sudo dnf install -y libadwaita-devel
sudo dnf install -y libshumate-devel