From 92c3e0a75aa0e505a2200137c60f06324ef35cc3 Mon Sep 17 00:00:00 2001 From: Unrud Date: Sun, 30 Sep 2018 11:10:25 +0200 Subject: [PATCH] Add Makefile for building flatpak --- flatpak/.gitignore | 4 ++++ flatpak/Makefile | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 flatpak/.gitignore create mode 100644 flatpak/Makefile diff --git a/flatpak/.gitignore b/flatpak/.gitignore new file mode 100644 index 0000000..0fbe396 --- /dev/null +++ b/flatpak/.gitignore @@ -0,0 +1,4 @@ +/RemoteTouchpad +/repo +/.flatpak-builder +/RemoteTouchpad-*.flatpak diff --git a/flatpak/Makefile b/flatpak/Makefile new file mode 100644 index 0000000..2f61890 --- /dev/null +++ b/flatpak/Makefile @@ -0,0 +1,31 @@ +ARCH = $(shell flatpak --default-arch) + +APP_ID = com.github.unrud.RemoteTouchpad +APP_NAME = RemoteTouchpad + +.PHONY: all +all: bundle + +.PHONY: build +build: + flatpak-builder --arch=$(ARCH) --force-clean $(APP_NAME) $(APP_ID).json + +.PHONY: repo +repo: + flatpak-builder --arch=$(ARCH) --force-clean $(APP_NAME) $(APP_ID).json --repo=repo + +.PHONY: bundle +bundle: repo + flatpak build-bundle --arch=$(ARCH) repo $(APP_NAME)-$(ARCH).flatpak $(APP_ID) + +.PHONY: clean +clean: + rm -rf $(APP_NAME) $(APP_NAME)-*.flatpak repo .flatpak-builder || true + +.PHONY: install +install: + flatpak install --user $(APP_NAME)-$(ARCH).flatpak + +.PHONY: uninstall +uninstall: + flatpak uninstall --user $(APP_ID)