From 15c09b68843b212c3771b4fba8baa301e414738a Mon Sep 17 00:00:00 2001 From: Yannick Mauray Date: Wed, 20 Oct 2021 02:30:40 +0200 Subject: [PATCH] Packaging: Makefile --- .gitignore | 3 ++- Makefile | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 02a8b6b..8c89582 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,5 @@ web/ ios/ android/ windows/ -list.csv \ No newline at end of file +list.csv +*.xz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5f8cf9a --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +SHELL := /usr/bin/env bash +VERSION := $(shell cat pubspec.yaml | grep "^version: " | cut -c 10- | sed 's/+/\-/') + +all: prep quickgui clean + +prep: + @echo VERSION is $(VERSION) + rm -rf _tmp + mkdir -p _tmp/quickgui + rm -f quickgui-$(VERSION).tar + rm -f quickgui-$(VERSION).tar.xz + +quickgui: + flutter build linux --release + cp -a build/linux/x64/release/bundle/* _tmp/quickgui + tar -C _tmp -c -f quickgui-$(VERSION).tar quickgui/ + xz -z quickgui-$(VERSION).tar + +clean: + rm -rf _tmp