added goa-account-exchange and added optipng to the build script

This commit is contained in:
germedeb 2022-06-13 21:14:26 -03:00
parent 32900b551f
commit 57f3b6f82a
3 changed files with 2016 additions and 7 deletions

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 57 KiB

View File

@ -1,14 +1,18 @@
#!/bin/bash #!/bin/bash
# define the colors
info_color="\e[1;34m" # tasks color info_color="\e[1;34m" # tasks color
comple_color="\e[1;32m" # Ok color comple_color="\e[1;32m" # Ok color
reset_colors="\e[0m" # this resets the coloring reset_colors="\e[0m" # this resets the coloring
# check dependencies
command -v inkscape >/dev/null 2>&1 || { echo >&2 "I cannot continue without 'inkscape'"; exit 1; } command -v inkscape >/dev/null 2>&1 || { echo >&2 "I cannot continue without 'inkscape'"; exit 1; }
command -v parallel >/dev/null 2>&1 || { echo >&2 "I cannot continue without 'parallel'"; exit 1; } command -v parallel >/dev/null 2>&1 || { echo >&2 "I cannot continue without 'parallel'"; exit 1; }
command -v bash >/dev/null 2>&1 || { echo >&2 "I cannot continue without 'bash'"; exit 1; } command -v bash >/dev/null 2>&1 || { echo >&2 "I cannot continue without 'bash'"; exit 1; }
printf "${info_color}this script build the icon pack and update/installs it to your home directory${reset_colors}\\n\\n"
printf "${info_color}This script runs the build tasks and performs an install (or an update) of aleta to your home${reset_colors}\\n\\n"
printf "${info_color}cleaning up the build directory...${reset_colors}\\n" printf "${info_color}cleaning up the build directory...${reset_colors}\\n"
rm _build/aleta -rf rm _build/aleta -rf
@ -17,7 +21,6 @@ printf "${info_color}rebuilding folder structure...${reset_colors}\\n"
./tasks/rebuildfolders.sh ./tasks/rebuildfolders.sh
printf "${info_color}copying the files to build in the build dir${reset_colors}\\n" printf "${info_color}copying the files to build in the build dir${reset_colors}\\n"
cp icons/apps/*.svg _build/icons-t/apps/ cp icons/apps/*.svg _build/icons-t/apps/
cp icons/places/*.svg _build/icons-t/places/ cp icons/places/*.svg _build/icons-t/places/
cp icons/categories/*.svg _build/icons-t/categories/ cp icons/categories/*.svg _build/icons-t/categories/
@ -27,9 +30,6 @@ cp icons/mimetypes/*.svg _build/icons-t/mimetypes/
cp icons/actions/*.svg _build/icons-t/actions/ cp icons/actions/*.svg _build/icons-t/actions/
cp icons/animations/*.svg _build/icons-t/animations/ cp icons/animations/*.svg _build/icons-t/animations/
printf "${info_color}starting link process...${reset_colors}\\n"
./tasks/linkcall.sh
printf "${info_color}exporting all the icons... this will take a long time.${reset_colors}\\n" printf "${info_color}exporting all the icons... this will take a long time.${reset_colors}\\n"
./tasks/export/export-places.sh ./tasks/export/export-places.sh
./tasks/export/export-apps.sh ./tasks/export/export-apps.sh
@ -40,16 +40,21 @@ printf "${info_color}exporting all the icons... this will take a long time.${res
./tasks/export/export-actions.sh ./tasks/export/export-actions.sh
./tasks/export/export-animations.sh ./tasks/export/export-animations.sh
printf "${info_color}Using optipng to reduce the size of the build...${reset_colors}\\n"
./tasks/opticall.sh
printf "${info_color}Launching misc commands...${reset_colors}\\n" printf "${info_color}Launching misc commands...${reset_colors}\\n"
./tasks/misc.sh ./tasks/misc.sh
printf "${info_color}starting link process...${reset_colors}\\n"
./tasks/linkcall.sh
printf "${info_color}Performing an Update/Installation of aleta${reset_colors}\\n" printf "${info_color}Performing an Update/Installation of aleta${reset_colors}\\n"
rm -rf ~/.icons/aleta rm -rf ~/.icons/aleta
mkdir ~/.icons/aleta -p mkdir ~/.icons/aleta -p
cp -r ./_build/aleta/* ~/.icons/aleta/ cp -r ./_build/aleta/* ~/.icons/aleta/
printf "${info_color}Updating gtk icon cache...${reset_colors}\\n" printf "${info_color}Updating gtk icon cache...${reset_colors}\\n"
gtk-update-icon-cache ~/.icons/aleta/ gtk-update-icon-cache ~/.icons/aleta/
printf "${comple_color}\\nCOMPLETED\!${reset_colors}\\n" printf "${comple_color}\\nCOMPLETED\! The icon pack is installed/updated.${reset_colors}\\n"

7
tasks/opticall.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
for FILE in _build/aleta/*/*/*.png
do
optipng -o7 "$FILE" >/dev/null 2>&1
echo optimized: "$FILE"
done