@@ -12,7 +12,7 @@ cp osx/conf.py meld/conf.py
1212
1313glib-compile-schemas data
1414python3 setup_py2app.py build
15- python3 setup_py2app.py py2app --use-faulthandler
15+ python3 setup_py2app.py py2app --use-faulthandler # -A
1616
1717# py2app copies all Python framework to target..
1818# too busy to figure out how to solve this at the moment. Let's just
@@ -21,8 +21,32 @@ rm -fr $FRAMEWORKS/Python.framework
2121
2222# icon themes
2323mkdir -p $RES /share/icons
24- rsync -r -t --ignore-existing $INSTROOT /share/icons/Adwaita $RES /share/icons
25- rsync -r -t --ignore-existing $INSTROOT /share/icons/hicolor $RES /share/icons
24+ declare -a arr=(" document-new"
25+ " go-down" " go-up" " process-stop"
26+ " dialog-information" " go-previous" " go-next"
27+ " list-add" " list-remove" " edit-delete"
28+ " dialog-information" " folder" " document-save" " edit-undo" " edit-redo"
29+ " document-revert" " go-bottom" " emblem-symbolic-link"
30+ )
31+
32+ SOURCE_DIR=" ${INSTROOT} /share/icons/Adwaita"
33+ TARGET_DIR=" ${RES} /share/icons/Adwaita"
34+ all_icons=$( find ${SOURCE_DIR} )
35+ for icon in $all_icons
36+ do
37+ for i in " ${arr[@]} "
38+ do
39+ if [[ $icon == * " ${i} .png" ]]; then
40+ icon_name=$( basename $icon )
41+ icon_path=$( echo $( dirname $icon ) | sed s_${SOURCE_DIR} __)
42+ mkdir -p ${TARGET_DIR} /${icon_path}
43+
44+ echo " $i ::$icon -> ${TARGET_DIR} /${icon_path} /"
45+ cp ${icon} ${TARGET_DIR} /${icon_path} /
46+ fi
47+ done
48+ done
49+ rsync -r -t --ignore-existing ${INSTROOT} /share/icons/hicolor ${RES} /share/icons
2650
2751# glib schemas
2852rsync -r -t $INSTROOT /share/glib-2.0/schemas $RES /share/glib-2.0
0 commit comments