Skip to content

Commit

Permalink
build: clean dist & webui-assets before they are built
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Nov 26, 2023
1 parent b686b14 commit 3d3949a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')
Expand Down

0 comments on commit 3d3949a

Please sign in to comment.