diff --git a/assets/assets-color/render-logos-1080p.sh b/assets/assets-color/render-logos-1080p.sh deleted file mode 100755 index 57784cc..0000000 --- a/assets/assets-color/render-logos-1080p.sh +++ /dev/null @@ -1,35 +0,0 @@ -#! /bin/bash - -INKSCAPE="/usr/bin/inkscape" -OPTIPNG="/usr/bin/optipng" - -INDEX="logos.txt" -ASSETS_DIR="icons-1080p" -SRC_FILE="logos.svg" - -install -d $ASSETS_DIR - -for i in `cat $INDEX` -do -if [ -f $ASSETS_DIR/$i.png ]; then - echo $ASSETS_DIR/$i.png exists. -else - echo - echo Rendering $ASSETS_DIR/$i.png - $INKSCAPE --export-id=$i \ - --export-id-only \ - --export-filename=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null - $OPTIPNG -o7 --quiet $ASSETS_DIR/$1.png -fi -done - -cd $ASSETS_DIR -cp -a archlinux.png arch.png -cp -a gnu-linux.png linux.png -cp -a gnu-linux.png unknown.png -cp -a gnu-linux.png lfs.png -cp -a manjaro.png Manjaro.i686.png -cp -a manjaro.png Manjaro.x86_64.png -cp -a driver.png memtest.png - -exit 0 diff --git a/assets/assets-color/render-logos-2k.sh b/assets/assets-color/render-logos-2k.sh deleted file mode 100755 index 9875f15..0000000 --- a/assets/assets-color/render-logos-2k.sh +++ /dev/null @@ -1,36 +0,0 @@ -#! /bin/bash - -INKSCAPE="/usr/bin/inkscape" -OPTIPNG="/usr/bin/optipng" - -INDEX="logos.txt" -ASSETS_DIR="icons-2k" -SRC_FILE="logos.svg" - -install -d $ASSETS_DIR - -for i in `cat $INDEX` -do -if [ -f $ASSETS_DIR/$i.png ]; then - echo $ASSETS_DIR/$i.png exists. -else - echo - echo Rendering $ASSETS_DIR/$i.png - $INKSCAPE --export-id=$i \ - --export-dpi=144 \ - --export-id-only \ - --export-filename=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null - $OPTIPNG -o7 --quiet $ASSETS_DIR/$1.png -fi -done - -cd $ASSETS_DIR -cp -a archlinux.png arch.png -cp -a gnu-linux.png linux.png -cp -a gnu-linux.png unknown.png -cp -a gnu-linux.png lfs.png -cp -a manjaro.png Manjaro.i686.png -cp -a manjaro.png Manjaro.x86_64.png -cp -a driver.png memtest.png - -exit 0 diff --git a/assets/assets-color/render-logos-4k.sh b/assets/assets-color/render-logos-4k.sh deleted file mode 100755 index 3f6f1b9..0000000 --- a/assets/assets-color/render-logos-4k.sh +++ /dev/null @@ -1,36 +0,0 @@ -#! /bin/bash - -INKSCAPE="/usr/bin/inkscape" -OPTIPNG="/usr/bin/optipng" - -INDEX="logos.txt" -ASSETS_DIR="icons-4k" -SRC_FILE="logos.svg" - -install -d $ASSETS_DIR - -for i in `cat $INDEX` -do -if [ -f $ASSETS_DIR/$i.png ]; then - echo $ASSETS_DIR/$i.png exists. -else - echo - echo Rendering $ASSETS_DIR/$i.png - $INKSCAPE --export-id=$i \ - --export-dpi=192 \ - --export-id-only \ - --export-filename=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null - $OPTIPNG -o7 --quiet $ASSETS_DIR/$1.png -fi -done - -cd $ASSETS_DIR -cp -a archlinux.png arch.png -cp -a gnu-linux.png linux.png -cp -a gnu-linux.png unknown.png -cp -a gnu-linux.png lfs.png -cp -a manjaro.png Manjaro.i686.png -cp -a manjaro.png Manjaro.x86_64.png -cp -a driver.png memtest.png - -exit 0 diff --git a/assets/assets-color/render-select-1080p.sh b/assets/assets-color/render-select-1080p.sh deleted file mode 100755 index 058dfff..0000000 --- a/assets/assets-color/render-select-1080p.sh +++ /dev/null @@ -1,26 +0,0 @@ -#! /bin/bash - -INKSCAPE="/usr/bin/inkscape" -OPTIPNG="/usr/bin/optipng" - -INDEX="select.txt" -ASSETS_DIR="select-1080p" -SRC_FILE="select.svg" - -install -d $ASSETS_DIR - -for i in `cat $INDEX` -do -if [ -f $ASSETS_DIR/$i.png ]; then - echo $ASSETS_DIR/$i.png exists. -else - echo - echo Rendering $ASSETS_DIR/$i.png - $INKSCAPE --export-id=$i \ - --export-id-only \ - --export-filename=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null - $OPTIPNG -o7 --quiet $ASSETS_DIR/$1.png -fi -done - -exit 0 diff --git a/assets/assets-color/render-select-2k.sh b/assets/assets-color/render-select-2k.sh deleted file mode 100755 index 6b514a6..0000000 --- a/assets/assets-color/render-select-2k.sh +++ /dev/null @@ -1,27 +0,0 @@ -#! /bin/bash - -INKSCAPE="/usr/bin/inkscape" -OPTIPNG="/usr/bin/optipng" - -INDEX="select.txt" -ASSETS_DIR="select-2k" -SRC_FILE="select.svg" - -install -d $ASSETS_DIR - -for i in `cat $INDEX` -do -if [ -f $ASSETS_DIR/$i.png ]; then - echo $ASSETS_DIR/$i.png exists. -else - echo - echo Rendering $ASSETS_DIR/$i.png - $INKSCAPE --export-id=$i \ - --export-dpi=144 \ - --export-id-only \ - --export-filename=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null - $OPTIPNG -o7 --quiet $ASSETS_DIR/$1.png -fi -done - -exit 0 diff --git a/assets/assets-color/render-select-4k.sh b/assets/assets-color/render-select-4k.sh deleted file mode 100755 index 4bd9306..0000000 --- a/assets/assets-color/render-select-4k.sh +++ /dev/null @@ -1,27 +0,0 @@ -#! /bin/bash - -INKSCAPE="/usr/bin/inkscape" -OPTIPNG="/usr/bin/optipng" - -INDEX="select.txt" -ASSETS_DIR="select-4k" -SRC_FILE="select.svg" - -install -d $ASSETS_DIR - -for i in `cat $INDEX` -do -if [ -f $ASSETS_DIR/$i.png ]; then - echo $ASSETS_DIR/$i.png exists. -else - echo - echo Rendering $ASSETS_DIR/$i.png - $INKSCAPE --export-id=$i \ - --export-dpi=192 \ - --export-id-only \ - --export-filename=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null - $OPTIPNG -o7 --quiet $ASSETS_DIR/$1.png -fi -done - -exit 0 diff --git a/assets/assets-color/select.svg b/assets/assets-color/select.svg deleted file mode 100644 index b5ebe55..0000000 --- a/assets/assets-color/select.svg +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - diff --git a/assets/assets-color/select.txt b/assets/assets-color/select.txt deleted file mode 100644 index c487614..0000000 --- a/assets/assets-color/select.txt +++ /dev/null @@ -1,3 +0,0 @@ -select_w -select_c -select_e diff --git a/assets/assets-white/icons-1080p/Manjaro.i686.png b/assets/assets-white/icons-1080p/Manjaro.i686.png index 7941265..823ccf2 100644 Binary files a/assets/assets-white/icons-1080p/Manjaro.i686.png and b/assets/assets-white/icons-1080p/Manjaro.i686.png differ diff --git a/assets/assets-white/icons-1080p/Manjaro.x86_64.png b/assets/assets-white/icons-1080p/Manjaro.x86_64.png index 7941265..823ccf2 100644 Binary files a/assets/assets-white/icons-1080p/Manjaro.x86_64.png and b/assets/assets-white/icons-1080p/Manjaro.x86_64.png differ diff --git a/assets/assets-white/icons-1080p/manjaro.png b/assets/assets-white/icons-1080p/manjaro.png index 7941265..823ccf2 100644 Binary files a/assets/assets-white/icons-1080p/manjaro.png and b/assets/assets-white/icons-1080p/manjaro.png differ diff --git a/assets/assets-white/icons-2k/Manjaro.i686.png b/assets/assets-white/icons-2k/Manjaro.i686.png index 6de39bb..02111c5 100644 Binary files a/assets/assets-white/icons-2k/Manjaro.i686.png and b/assets/assets-white/icons-2k/Manjaro.i686.png differ diff --git a/assets/assets-white/icons-2k/Manjaro.x86_64.png b/assets/assets-white/icons-2k/Manjaro.x86_64.png index 6de39bb..02111c5 100644 Binary files a/assets/assets-white/icons-2k/Manjaro.x86_64.png and b/assets/assets-white/icons-2k/Manjaro.x86_64.png differ diff --git a/assets/assets-white/icons-2k/manjaro.png b/assets/assets-white/icons-2k/manjaro.png index 6de39bb..02111c5 100644 Binary files a/assets/assets-white/icons-2k/manjaro.png and b/assets/assets-white/icons-2k/manjaro.png differ diff --git a/assets/assets-white/icons-4k/Manjaro.i686.png b/assets/assets-white/icons-4k/Manjaro.i686.png index 0f62a14..611a6fb 100644 Binary files a/assets/assets-white/icons-4k/Manjaro.i686.png and b/assets/assets-white/icons-4k/Manjaro.i686.png differ diff --git a/assets/assets-white/icons-4k/Manjaro.x86_64.png b/assets/assets-white/icons-4k/Manjaro.x86_64.png index 0f62a14..611a6fb 100644 Binary files a/assets/assets-white/icons-4k/Manjaro.x86_64.png and b/assets/assets-white/icons-4k/Manjaro.x86_64.png differ diff --git a/assets/assets-white/icons-4k/manjaro.png b/assets/assets-white/icons-4k/manjaro.png index 0f62a14..611a6fb 100644 Binary files a/assets/assets-white/icons-4k/manjaro.png and b/assets/assets-white/icons-4k/manjaro.png differ diff --git a/assets/assets-white/logos.txt b/assets/assets-white/logos.txt deleted file mode 100644 index 65b1586..0000000 --- a/assets/assets-white/logos.txt +++ /dev/null @@ -1,55 +0,0 @@ -android -anonymous -antergos -arcolinux -elementary -korora -mageia -steamos -archlinux -fedora -freebsd -kubuntu -manjaro -ubuntu -chakra -gentoo -opensuse -windows -debian -parrot -gnu-linux -linuxmint -siduction -xubuntu -deepin -kali -lubuntu -solus -kaos -void -macosx -haiku -endeavouros -pop-os -mx-linux -devuan -4MLinux -AlpineLinux -SystemRescueCD - -recovery -restart -shutdown -cancel -driver -edit -efi -find.efi -find.none -help -kbd -lang -type -tz -unset diff --git a/assets/assets-white/render-logos-1080p.sh b/assets/assets-white/render-logos-1080p.sh deleted file mode 100755 index 57784cc..0000000 --- a/assets/assets-white/render-logos-1080p.sh +++ /dev/null @@ -1,35 +0,0 @@ -#! /bin/bash - -INKSCAPE="/usr/bin/inkscape" -OPTIPNG="/usr/bin/optipng" - -INDEX="logos.txt" -ASSETS_DIR="icons-1080p" -SRC_FILE="logos.svg" - -install -d $ASSETS_DIR - -for i in `cat $INDEX` -do -if [ -f $ASSETS_DIR/$i.png ]; then - echo $ASSETS_DIR/$i.png exists. -else - echo - echo Rendering $ASSETS_DIR/$i.png - $INKSCAPE --export-id=$i \ - --export-id-only \ - --export-filename=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null - $OPTIPNG -o7 --quiet $ASSETS_DIR/$1.png -fi -done - -cd $ASSETS_DIR -cp -a archlinux.png arch.png -cp -a gnu-linux.png linux.png -cp -a gnu-linux.png unknown.png -cp -a gnu-linux.png lfs.png -cp -a manjaro.png Manjaro.i686.png -cp -a manjaro.png Manjaro.x86_64.png -cp -a driver.png memtest.png - -exit 0 diff --git a/assets/assets-white/render-logos-2k.sh b/assets/assets-white/render-logos-2k.sh deleted file mode 100755 index 9875f15..0000000 --- a/assets/assets-white/render-logos-2k.sh +++ /dev/null @@ -1,36 +0,0 @@ -#! /bin/bash - -INKSCAPE="/usr/bin/inkscape" -OPTIPNG="/usr/bin/optipng" - -INDEX="logos.txt" -ASSETS_DIR="icons-2k" -SRC_FILE="logos.svg" - -install -d $ASSETS_DIR - -for i in `cat $INDEX` -do -if [ -f $ASSETS_DIR/$i.png ]; then - echo $ASSETS_DIR/$i.png exists. -else - echo - echo Rendering $ASSETS_DIR/$i.png - $INKSCAPE --export-id=$i \ - --export-dpi=144 \ - --export-id-only \ - --export-filename=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null - $OPTIPNG -o7 --quiet $ASSETS_DIR/$1.png -fi -done - -cd $ASSETS_DIR -cp -a archlinux.png arch.png -cp -a gnu-linux.png linux.png -cp -a gnu-linux.png unknown.png -cp -a gnu-linux.png lfs.png -cp -a manjaro.png Manjaro.i686.png -cp -a manjaro.png Manjaro.x86_64.png -cp -a driver.png memtest.png - -exit 0 diff --git a/assets/assets-white/render-logos-4k.sh b/assets/assets-white/render-logos-4k.sh deleted file mode 100755 index 3f6f1b9..0000000 --- a/assets/assets-white/render-logos-4k.sh +++ /dev/null @@ -1,36 +0,0 @@ -#! /bin/bash - -INKSCAPE="/usr/bin/inkscape" -OPTIPNG="/usr/bin/optipng" - -INDEX="logos.txt" -ASSETS_DIR="icons-4k" -SRC_FILE="logos.svg" - -install -d $ASSETS_DIR - -for i in `cat $INDEX` -do -if [ -f $ASSETS_DIR/$i.png ]; then - echo $ASSETS_DIR/$i.png exists. -else - echo - echo Rendering $ASSETS_DIR/$i.png - $INKSCAPE --export-id=$i \ - --export-dpi=192 \ - --export-id-only \ - --export-filename=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null - $OPTIPNG -o7 --quiet $ASSETS_DIR/$1.png -fi -done - -cd $ASSETS_DIR -cp -a archlinux.png arch.png -cp -a gnu-linux.png linux.png -cp -a gnu-linux.png unknown.png -cp -a gnu-linux.png lfs.png -cp -a manjaro.png Manjaro.i686.png -cp -a manjaro.png Manjaro.x86_64.png -cp -a driver.png memtest.png - -exit 0 diff --git a/assets/assets-white/render-select-1080p.sh b/assets/assets-white/render-select-1080p.sh deleted file mode 100755 index 058dfff..0000000 --- a/assets/assets-white/render-select-1080p.sh +++ /dev/null @@ -1,26 +0,0 @@ -#! /bin/bash - -INKSCAPE="/usr/bin/inkscape" -OPTIPNG="/usr/bin/optipng" - -INDEX="select.txt" -ASSETS_DIR="select-1080p" -SRC_FILE="select.svg" - -install -d $ASSETS_DIR - -for i in `cat $INDEX` -do -if [ -f $ASSETS_DIR/$i.png ]; then - echo $ASSETS_DIR/$i.png exists. -else - echo - echo Rendering $ASSETS_DIR/$i.png - $INKSCAPE --export-id=$i \ - --export-id-only \ - --export-filename=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null - $OPTIPNG -o7 --quiet $ASSETS_DIR/$1.png -fi -done - -exit 0 diff --git a/assets/assets-white/render-select-2k.sh b/assets/assets-white/render-select-2k.sh deleted file mode 100755 index 6b514a6..0000000 --- a/assets/assets-white/render-select-2k.sh +++ /dev/null @@ -1,27 +0,0 @@ -#! /bin/bash - -INKSCAPE="/usr/bin/inkscape" -OPTIPNG="/usr/bin/optipng" - -INDEX="select.txt" -ASSETS_DIR="select-2k" -SRC_FILE="select.svg" - -install -d $ASSETS_DIR - -for i in `cat $INDEX` -do -if [ -f $ASSETS_DIR/$i.png ]; then - echo $ASSETS_DIR/$i.png exists. -else - echo - echo Rendering $ASSETS_DIR/$i.png - $INKSCAPE --export-id=$i \ - --export-dpi=144 \ - --export-id-only \ - --export-filename=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null - $OPTIPNG -o7 --quiet $ASSETS_DIR/$1.png -fi -done - -exit 0 diff --git a/assets/assets-white/render-select-4k.sh b/assets/assets-white/render-select-4k.sh deleted file mode 100755 index 4bd9306..0000000 --- a/assets/assets-white/render-select-4k.sh +++ /dev/null @@ -1,27 +0,0 @@ -#! /bin/bash - -INKSCAPE="/usr/bin/inkscape" -OPTIPNG="/usr/bin/optipng" - -INDEX="select.txt" -ASSETS_DIR="select-4k" -SRC_FILE="select.svg" - -install -d $ASSETS_DIR - -for i in `cat $INDEX` -do -if [ -f $ASSETS_DIR/$i.png ]; then - echo $ASSETS_DIR/$i.png exists. -else - echo - echo Rendering $ASSETS_DIR/$i.png - $INKSCAPE --export-id=$i \ - --export-dpi=192 \ - --export-id-only \ - --export-filename=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null - $OPTIPNG -o7 --quiet $ASSETS_DIR/$1.png -fi -done - -exit 0 diff --git a/assets/assets-color/logos.svg b/assets/logos-color.svg similarity index 100% rename from assets/assets-color/logos.svg rename to assets/logos-color.svg diff --git a/assets/assets-white/logos.svg b/assets/logos-white.svg similarity index 100% rename from assets/assets-white/logos.svg rename to assets/logos-white.svg diff --git a/assets/assets-color/logos.txt b/assets/logos.txt similarity index 100% rename from assets/assets-color/logos.txt rename to assets/logos.txt diff --git a/assets/render-all.sh b/assets/render-all.sh new file mode 100755 index 0000000..a714d9f --- /dev/null +++ b/assets/render-all.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +COLORS=("color" "white") +TYPES=("icons" "select") +RESOLUTIONS=("1080p" "2k" "4k") + +for COLOR in "${COLORS[@]}"; do + for TYPE in "${TYPES[@]}"; do + for RESOLUTION in "${RESOLUTIONS[@]}"; do + echo "./render-assets.sh \"$COLOR\" \"$TYPE\" \"$RESOLUTION\": " + ./render-assets.sh "$COLOR" "$TYPE" "$RESOLUTION" + done + done +done diff --git a/assets/render-assets.sh b/assets/render-assets.sh new file mode 100755 index 0000000..a0a0191 --- /dev/null +++ b/assets/render-assets.sh @@ -0,0 +1,69 @@ +#!/bin/bash + +INKSCAPE="/usr/bin/inkscape" +OPTIPNG="/usr/bin/optipng" + +if [[ "$1" == "color" ]]; then + cd "assets-color" || exit 1 +elif [[ "$1" == "white" ]]; then + cd "assets-white" || exit 1 +else + echo "Please use either 'color' or 'white'" + exit 1 +fi + +if [[ "$2" == "icons" ]]; then + EXPORT_TYPE="icons" + INDEX="../logos.txt" + SRC_FILE="../logos-$1.svg" +elif [[ "$2" == "select" ]]; then + EXPORT_TYPE="select" + INDEX="../select.txt" + SRC_FILE="../select.svg" +else + echo "Please use either 'icons' or 'select'" + exit 1 +fi + +if [[ "$3" == "1080p" ]]; then + ASSETS_DIR="$EXPORT_TYPE-1080p" + EXPORT_DPI="96" +elif [[ "$3" == "2k" ]] || [[ "$3" == "2K" ]]; then + ASSETS_DIR="$EXPORT_TYPE-2k" + EXPORT_DPI="144" +elif [[ "$3" == "4k" ]] || [[ "$3" == "4K" ]]; then + ASSETS_DIR="$EXPORT_TYPE-4k" + EXPORT_DPI="192" +else + echo "Please use either '1080p', '2k' or '4k'" + exit 1 +fi + +install -d "$ASSETS_DIR" + +while read -r i; do + if [[ -f "$ASSETS_DIR/$i.png" ]]; then + echo "$ASSETS_DIR/$i.png exists" + elif [[ "$i" == "" ]]; then + continue + else + echo -e "\nRendering $ASSETS_DIR/$i.png" + $INKSCAPE "--export-id=$i" \ + "--export-dpi=$EXPORT_DPI" \ + "--export-id-only" \ + "--export-filename=$ASSETS_DIR/$i.png" "$SRC_FILE" >/dev/null + $OPTIPNG -o7 --quiet "$ASSETS_DIR/$1.png" + fi +done < "$INDEX" + +if [[ "$EXPORT_TYPE" == "icons" ]]; then + cd $ASSETS_DIR || exit 1 + cp -a archlinux.png arch.png + cp -a gnu-linux.png linux.png + cp -a gnu-linux.png unknown.png + cp -a gnu-linux.png lfs.png + cp -a manjaro.png Manjaro.i686.png + cp -a manjaro.png Manjaro.x86_64.png + cp -a driver.png memtest.png +fi +exit 0 diff --git a/assets/assets-white/select.svg b/assets/select.svg similarity index 100% rename from assets/assets-white/select.svg rename to assets/select.svg diff --git a/assets/assets-white/select.txt b/assets/select.txt similarity index 100% rename from assets/assets-white/select.txt rename to assets/select.txt