summaryrefslogtreecommitdiff
path: root/themes/m10c/scripts/update_feather_icons.sh
blob: dff51294bf1e8f0ade3c1a93466b63d841d51017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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