mirror of
https://github.com/RobTheFiveNine/flat-gamepad-icons.git
synced 2025-07-21 04:41:15 +02:00
Add source svg and build script
This commit is contained in:
13
build.sh
Normal file
13
build.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
declare -a dpis=("50" "96" "150" "300")
|
||||
|
||||
ids=$(grep -oP 'id="(generic|xb|ps|switch)_.+?"' icons.svg | cut -d '"' -f 2)
|
||||
|
||||
mkdir -p build
|
||||
|
||||
for dpi in "${dpis[@]}"
|
||||
do
|
||||
while read id; do
|
||||
echo "Building $id @ $dpi dpi..."
|
||||
inkscape --export-id="$id" --export-id-only -d "$dpi" --export-type=png -o "build/${id}.${dpi}dpi.png" icons.svg 2> /dev/null
|
||||
done <<< "$ids"
|
||||
done
|
Reference in New Issue
Block a user