Skip to content

Commit 79f30e7

Browse files
committed
build(deps): updated deps (incl PyInstaller v6.1+ with fixes)
1 parent 10dfeda commit 79f30e7

3 files changed

Lines changed: 112 additions & 58 deletions

File tree

Makefile

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff 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+
184201
clean:
185202
rm -rf build dist
186203

poetry.lock

Lines changed: 90 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)