Packaging: Makefile

This commit is contained in:
Yannick Mauray 2021-10-20 02:30:40 +02:00
parent d0b4368788
commit 15c09b6884
No known key found for this signature in database
GPG Key ID: 67C4AAC5E99CB909
2 changed files with 22 additions and 1 deletions

3
.gitignore vendored
View File

@ -27,4 +27,5 @@ web/
ios/
android/
windows/
list.csv
list.csv
*.xz

20
Makefile Normal file
View File

@ -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