Commit 2cf8e00c authored by Jesse van den Kieboom's avatar Jesse van den Kieboom

[osx] Remove cached python files from bundle

parent fc9e7312
......@@ -90,8 +90,16 @@ function cmd_make() {
echo "Removing unneeded files from bundle"
# Remove pyc and pyo files
for i in $(find "$BUNDLE/Contents/Resources/lib/python3"* -type f -regex '.*\.py[oc]' 2>/dev/null); do
rm -f "$i"
for i in $(find "$BUNDLE/Contents/Resources/lib/"* -type f -regex '.*\.py[oc]' 2>/dev/null); do
rm -f "$i"
done
for i in $(find "$BUNDLE/Contents/Resources/lib/"* -type d -name '__pycache__' 2>/dev/null); do
rmdir "$i" 2>/dev/null
done
for i in $(find "$BUNDLE/Contents/Resources/lib/"* -type f -regex '.*\.py[oc]' 2>/dev/null); do
rm -f "$i"
done
echo "Strip debug symbols from bundle binaries"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment