From 3d3949a0269150504eafebf1998a3f8473e4cc0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Sun, 26 Nov 2023 14:20:13 +0100 Subject: [PATCH] build: clean dist & webui-assets before they are built --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 8c99ab3d..3a38baf7 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ aw-webui: ifeq ($(SKIP_WEBUI),true) # Skip building webui if SKIP_WEBUI is true @echo "Skipping building webui" else + rm -rf aw_server/static/* make --directory=aw-webui build DEV=$(DEV) cp -r aw-webui/dist/* aw_server/static/ # Needed for https://github.com/ActivityWatch/activitywatch/pull/274, works around https://github.com/pypa/pip/issues/6279 @@ -30,6 +31,7 @@ typecheck: package: python -m aw_server.__about__ + rm -rf dist pyinstaller aw-server.spec --clean --noconfirm PYFILES=$(shell find . -name '*.py')