summaryrefslogtreecommitdiff
path: root/themes/m10c/scripts/update_feather_icons.sh
diff options
context:
space:
mode:
Diffstat (limited to 'themes/m10c/scripts/update_feather_icons.sh')
-rwxr-xr-xthemes/m10c/scripts/update_feather_icons.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/themes/m10c/scripts/update_feather_icons.sh b/themes/m10c/scripts/update_feather_icons.sh
new file mode 100755
index 0000000..dff5129
--- /dev/null
+++ b/themes/m10c/scripts/update_feather_icons.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+FEATHER_PATH=`dirname "$0"`/feather
+
+# Clone feather repository
+git clone --depth=1 git@github.com:feathericons/feather.git $FEATHER_PATH
+
+pushd $FEATHER_PATH
+
+# Install dependencies
+yarn
+
+mkdir dist
+
+# Generate icons.json
+npx babel-node bin/build-icons-json.js
+
+# Copy icons.json into theme data
+cp dist/icons.json ../../data/m10c/icons.json
+
+popd
+
+# Remove the repository
+rm -rf $FEATHER_PATH