forked from sonnyp/Commit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (29 loc) · 1.33 KB
/
Makefile
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
.PHONY: build run-host flatpak bundle test
build:
# meson --reconfigure --prefix $(shell pwd)/install build
meson --prefix $(shell pwd)/install build
ninja -C build install
run-host:
make clean
make build
GSETTINGS_SCHEMA_DIR=./data ./install/bin/re.sonny.Commit
flatpak:
flatpak-builder --user --force-clean --repo=repo --install-deps-from=flathub flatpak re.sonny.Commit.json
flatpak --user remote-add --no-gpg-verify --if-not-exists Commit repo
flatpak --user install --reinstall --assumeyes Commit re.sonny.Commit
# flatpak run re.sonny.Commit
bundle:
flatpak-builder --user --force-clean --repo=repo --install-deps-from=flathub flatpak re.sonny.Commit.json
flatpak build-bundle repo Commit.flatpak re.sonny.Commit --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
test:
./node_modules/.bin/eslint --cache .
# flatpak run org.freedesktop.appstream-glib validate data/re.sonny.Commit.metainfo.xml
appstreamcli validate --no-net data/re.sonny.Commit.metainfo.xml
desktop-file-validate --no-hints data/re.sonny.Commit.desktop
# gtk-builder-tool validate src/*.ui
./troll/tst/bin.js test/scm.test.js
./troll/tst/bin.js test/wrap.test.js
flatpak-builder --show-manifest re.sonny.Commit.json > /dev/null
find po/ -type f -name "*po" -print0 | xargs -0 -n1 msgfmt -o /dev/null --check
clean:
rm -rf build install .eslintcache