-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
27 lines (26 loc) · 1.18 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
# A makefile for building, testing and publishing flatpak builds.
remote=https://github.com/hamza-algohary/io.github.hamza_algohary.Coulomb
build:
flatpak-builder --user --install --disable-cache --repo=org.flathub app/build/flatpak io.github.hamza_algohary.Coulomb/io.github.hamza_algohary.Coulomb.yaml --force-clean
debug:
flatpak --log-session-bus run io.github.hamza_algohary.Coulomb
run:
flatpak run io.github.hamza_algohary.Coulomb
clean:
rm -rf org.flathub
rm -rf .flatpak-builder
lint:
flatpak run --command=flatpak-builder-lint org.flatpak.Builder --exceptions appstream app/src/main/resources/io.github.hamza_algohary.Coulomb.metainfo.xml
preview:
gnome-software --show-metainfo app/src/main/resources/io.github.hamza_algohary.Coulomb.metainfo.xml
clone:
git clone $(remote)
update:
cd io.github.hamza_algohary.Coulomb && git pull
publish: build lint
cd io.github.hamza_algohary.Coulomb && git push
@echo "Visit https://github.com/hamza-algohary/io.github.hamza_algohary.Coulomb and open pull request."
@echo "Then visit https://github.com/flathub/io.github.hamza_algohary.Coulomb and merge."
delete: clean
rm -rf io.github.hamza_algohary.Coulomb
test: clean build debug lint preview