Skip to content

Commit 3d3949a

Browse files
committed
build: clean dist & webui-assets before they are built
1 parent b686b14 commit 3d3949a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ aw-webui:
88
ifeq ($(SKIP_WEBUI),true) # Skip building webui if SKIP_WEBUI is true
99
@echo "Skipping building webui"
1010
else
11+
rm -rf aw_server/static/*
1112
make --directory=aw-webui build DEV=$(DEV)
1213
cp -r aw-webui/dist/* aw_server/static/
1314
# Needed for https://github.com/ActivityWatch/activitywatch/pull/274, works around https://github.com/pypa/pip/issues/6279
@@ -30,6 +31,7 @@ typecheck:
3031

3132
package:
3233
python -m aw_server.__about__
34+
rm -rf dist
3335
pyinstaller aw-server.spec --clean --noconfirm
3436

3537
PYFILES=$(shell find . -name '*.py')

0 commit comments

Comments
 (0)