forked from flathub/com.github.k4zmu2a.spacecadetpinball
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
21 lines (20 loc) · 810 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
REPO ?= build/flatpak-repo
STATE ?= build/flatpak-builder
TARGET ?= build/flatpak-target
APP_ID = com.github.k4zmu2a.spacecadetpinball
ARCH ?= $(shell arch)
all:
flatpak-builder --ccache --force-clean --arch=$(ARCH) --state-dir=$(STATE) --repo=$(REPO) $(TARGET) $(APP_ID).yml
clean:
rm -rf $(STATE) $(REPO) $(TARGET) *.flatpak .flatpak-builder
dist:
flatpak build-bundle --arch=$(ARCH) $(REPO) $(APP_ID)-$(ARCH).flatpak $(APP_ID)
install:
flatpak install --reinstall --or-update -y -v --user $(shell realpath $(REPO)) $(APP_ID)
run:
flatpak run -v $(APP_ID)
uninstall:
flatpak uninstall --user $(APP_ID)
check:
flatpak run org.freedesktop.appstream-glib validate $(shell realpath $(TARGET))/files/share/appdata/$(APP_ID).appdata.xml
flatpak run org.flathub.flatpak-external-data-checker $(APP_ID).yml