diff --git a/LICENSE.dist.txt b/LICENSE.dist.txt
new file mode 100644
index 0000000..b8bd76f
--- /dev/null
+++ b/LICENSE.dist.txt
@@ -0,0 +1,11 @@
+This asset pack is made available under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.
+
+This means you are free to:
+ - Copy and redistribute the material in any medium or format and remix
+ - Transform and build upon the material for any purpose, even commercially
+
+You can find more information about the license online at https://creativecommons.org/licenses/by-sa/4.0/
+
+Attribution can be linked to the distribution page at https://robthefivenine.itch.io/flat-gamepad-icons or to my GitHub page at https://github.com/RobTheFiveNine
+
+Additionally, if you do use it in any of your projects, I'd be interested to hear about it! If you'd like to let me know, please reach out via any of the methods listed on my GitHub profile.
diff --git a/build.sh b/build.sh
index f7be86f..1d73b4d 100644
--- a/build.sh
+++ b/build.sh
@@ -1,6 +1,6 @@
declare -a dpis=("50" "96" "150" "300")
-ids=$(grep -oP 'id="(generic|xb|ps|switch)_.+?"' icons.svg | cut -d '"' -f 2)
+ids=$(grep -oP 'id="(generic|xb|ps|switch|kb)_.+?"' icons.svg | cut -d '"' -f 2)
mkdir -p build
rm build/*
@@ -12,3 +12,11 @@ do
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
+
+cp LICENSE.dist.txt build/LICENSE.txt
+
+echo "Compressing to flat-gamepad-icons.zip..."
+zip -q -j -9 flat-gamepad-icons.zip build/*
+
+
+echo "Done."
diff --git a/icons.svg b/icons.svg
index 5282bca..f7231de 100644
--- a/icons.svg
+++ b/icons.svg
@@ -2,9 +2,9 @@
Generic IconsGeneric IconsXbox IconsXbox IconsPlayStation IconsPlayStation IconsNintendo Switch IconsNintendo Switch IconsKeyboard IconsRSRSLSLSL3L3R3R3LLLLLLLLRRRRRRRRSELECTSELECTSTARTSTARTL1L1R1R1L2L2R2R2RTRTRBRBYYXXLBLBLTLTBBAA123456780F19F2F3F4F5F6F7F8F9F10F11F12QWERTPOIUYASDFGHJKLZXCVBNMCTLALTESCZLZLZRZRRRLLYYXXBBA
+ id="tspan1959">A
diff --git a/test.sh b/test.sh
index aee78f2..9ff4c33 100755
--- a/test.sh
+++ b/test.sh
@@ -2,11 +2,11 @@
echo -n "Checking file count... "
file_count=$(ls -A build/ | wc -l)
-if [[ $file_count -eq 196 ]]; then
+if [[ $file_count -eq 425 ]]; then
echo -e "\xE2\x9C\x94"
else
echo -e $"\u274c"
- echo " - Expected 196 files but found $file_count"
+ echo " - Expected 425 files but found $file_count"
fi
@@ -17,7 +17,7 @@ for size in 132x132 132x70 264x139 264x264 44x23 44x44 84x45 84x84; do
done
-sizes=$(identify build/* | grep -oP "PNG.+?\+" | cut -d " " -f 2 | sort -u)
+sizes=$(identify build/*.png | grep -oP "PNG.+?\+" | cut -d " " -f 2 | sort -u)
echo -n "Checking icon resolutions... "
pass=1