File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,18 +169,35 @@ package:
169169 mv aw-qt-tmp/* dist/activitywatch
170170 rmdir aw-qt-tmp
171171# Remove problem-causing binaries
172- rm -f dist/activitywatch/libdrm.so.2 # see: https://github.com/ActivityWatch/activitywatch/issues/161
173- rm -f dist/activitywatch/libharfbuzz.so.0 # see: https://github.com/ActivityWatch/activitywatch/issues/660#issuecomment-959889230
172+ rm -f dist/activitywatch/_internal/ libdrm.so.2 # see: https://github.com/ActivityWatch/activitywatch/issues/161
173+ rm -f dist/activitywatch/_internal/ libharfbuzz.so.0 # see: https://github.com/ActivityWatch/activitywatch/issues/660#issuecomment-959889230
174174# These should be provided by the distro itself
175175# Had to be removed due to otherwise causing the error:
176176# aw-qt: symbol lookup error: /opt/activitywatch/libQt5XcbQpa.so.5: undefined symbol: FT_Get_Font_Format
177- rm -f dist/activitywatch/libfontconfig.so.1
178- rm -f dist/activitywatch/libfreetype.so.6
177+ rm -f dist/activitywatch/_internal/libfontconfig.so.1
178+ rm -f dist/activitywatch/_internal/libfreetype.so.6
179+ # Check
180+ make package-check
179181# Remove unnecessary files
180182 rm -rf dist/activitywatch/pytz
181183# Builds zips and setups
182184 bash scripts/package/package-all.sh
183185
186+ BADLIBS := \
187+ libdrm.so.2 \
188+ libharfbuzz.so.0 \
189+ libfontconfig.so.1 \
190+ libfreetype.so.6
191+
192+ package-check :
193+ # check that the libs are gone everywhere
194+ @for lib in $(BADLIBS ) ; do \
195+ if [ -n " $$ (find dist/activitywatch -name $$ lib)" ]; then \
196+ echo " Error: $$ lib found in $$ (find dist/activitywatch -name $$ lib)" >&2 ; \
197+ exit 1; \
198+ fi \
199+ done
200+
184201clean :
185202 rm -rf build dist
186203
You can’t perform that action at this time.
0 commit comments