Compare commits

...

5 Commits

5 changed files with 16 additions and 13 deletions

View File

@ -48,11 +48,11 @@ git clone https://gitea.sergiotarxz.freemyip.com/germedeb/aleta-postre
cd aleta-postre
# Launch the build script with the following options:
# autoinstall, optimize, restart, export
# autoinstall, restart, export
# note: the building process takes more or less 15 minutes*
./tasks/build.sh -r -i -o -e
./tasks/build.sh -r -i -e
```
*note: the building process takes more or less 15 minutes*
* apply

View File

@ -1825,10 +1825,10 @@
pagecolor="#f4f4f4"
bordercolor="#000000"
borderopacity="0.3372549"
inkscape:pageopacity="0.86666667"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="32"
inkscape:cx="4.265625"
inkscape:cx="4.28125"
inkscape:cy="6.65625"
inkscape:document-units="pt"
inkscape:current-layer="layer2"

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -1825,7 +1825,7 @@
pagecolor="#f4f4f4"
bordercolor="#000000"
borderopacity="0.3372549"
inkscape:pageopacity="0.86666667"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="32"
inkscape:cx="2.75"

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -34,14 +34,13 @@ Usage: ./tasks/build.sh [args]...
${info_color}Examples:${reset_colors}
./tasks/build.sh -r -e Start the build from cero
./tasks/build.sh -r -e -i Same but now it autoinstalls
./tasks/build.sh -o -e -r Same as the first one but now launch optipng
./tasks/build.sh -r -e -i Same but now it autoinstalls (recommended)
./tasks/build.sh -e Continue building. useful if you cancelled the build
${info_color}Arguments:${reset_colors}
-h --help help Show this help.
-e --export Export the remaining icons
-o --use-optipng Launch optipng process
-o --use-optipng Launch optipng process*
-v --verbose Show more info. useful for debugging
-r --from-cero Copy the SVG again and start the build again
-i --autoinstall Autoinstall to User directory
@ -82,7 +81,7 @@ fi
case "$@" in *-r*|*--from-cero*)
RESTART=yes
if [ "$VERBOSE" = yes ] ; then
printf '${info_color}Detected "restart" option, this will remove the last build and start agin...${reset_colors}\\n'
printf "${info_color}Detected \"restart\" option, this will remove the last build and start agin...${reset_colors}\\n"
fi
esac
@ -120,16 +119,20 @@ case "$@" in *--use-optipng*|*-o*)
OPTIPNG=use
esac
# checks if you have optipng, if you have it, launch opticall. if not, exit
if [ "$OPTIPNG" = use ]; then
if [ "$IGNOREDEPS" != ok ]; then
command -v optipng >/dev/null 2>&1 || { echo >&2 "Missing dependency: optipng"; DEPSCOMPLETE=n; }
if [ "$DEPSCOMPLETE" = n ]; then
echo To optimize the build, please install optipng
exit 2
fi
fi
printf "${info_color}Using optipng to reduce the size of the build...${reset_colors}\\n"
./tasks/opticall.sh
./tasks/opticall.sh;
fi
# copy the index.theme file to the build. necesary to interpretate the icon pack in the settings

View File

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