Skip to content

Commit

Permalink
Only filter files in directories starting with .
Browse files Browse the repository at this point in the history
Mac builds were missing some definitions, which happened because there was
a . in the directory. The reason why we filtered these in the first place
was because Apple doesn't notarize/sign an App correctly if the directory
starts with a . e.q.: .dylibs in scipy and shapely.

Made the filtering less aggressive

Contributes to CURA-11014
  • Loading branch information
jellespijker committed Sep 21, 2023
1 parent e4cca70 commit f806a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UltiMaker-Cura.spec.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class UMBUNDLE(BUNDLE):
pass
else:
if typ == 'DATA':
if any(['.' in p for p in inm.parent.parts]) or inm.suffix == '.so':
if any([p.startswith(".") for p in inm.parent.parts if inm.parent.is_dir()]) or inm.suffix == '.so':
# Skip info dist egg and some not needed folders in tcl and tk, since they all contain dots in their files
logger.warning(f"Skipping DATA file {inm}")
continue
Expand Down

0 comments on commit f806a61

Please sign in to comment.