Add Makefile for dist package

This commit is contained in:
2026-04-16 14:02:43 +02:00
parent 339a2969aa
commit 6529109b76

20
Makefile Normal file
View File

@@ -0,0 +1,20 @@
.PHONY: clean dist
APP_NAME = minimalprofile
VERSION = $$(cat appinfo/info.xml | grep -oP '<version>\K[^<]+' || echo "1.0.0")
dist: clean
@echo "Creating $(APP_NAME) distribution..."
@mkdir -p dist
@tar -czf dist/$(APP_NAME).tar.gz \
--exclude='.git' \
--exclude='.gitignore' \
--exclude='dist' \
--exclude='*.log' \
--transform 's|^|$(APP_NAME)/|' \
.
@echo "Created dist/$(APP_NAME).tar.gz"
@ls -lh dist/
clean:
@rm -rf dist/