Unverified Commit dd08ea2e authored by Michael Spiss's avatar Michael Spiss Committed by GitHub

Update update tool to recognize custom icons.json

parent 7c1ad706
#!/usr/bin/env bash #!/usr/bin/env bash
if [ -e ./icons.json ];
then
echo "Custom icons.json found, using local data only."
dart ./tool/generate_font.dart ./icons.json
dart ./tool/generate_example.dart ./icons.json
dartfmt -w ./lib/font_awesome_flutter.dart
dartfmt -w ./example/lib/icons.dart
else
echo "Updating icons to newest version."
pushd lib/fonts/ pushd lib/fonts/
curl -O -L "https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/webfonts/fa-brands-400.ttf" curl -O -L "https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/webfonts/fa-brands-400.ttf"
...@@ -16,3 +26,4 @@ dartfmt -w ./lib/font_awesome_flutter.dart ...@@ -16,3 +26,4 @@ dartfmt -w ./lib/font_awesome_flutter.dart
dartfmt -w ./example/lib/icons.dart dartfmt -w ./example/lib/icons.dart
rm /tmp/icons.json rm /tmp/icons.json
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment