mirror of https://github.com/zulip/zulip.git
tools: Remove `tools/setup/emoji/download-emoji-data` tool.
This tool was used for downloading sprite sheets from iamcal's repository. Since now we have moved to using `emoji-datasource` npm package, this tool is no longer required.
This commit is contained in:
parent
ebdd8c9e3d
commit
92f6613bdd
|
@ -1,27 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
set -x
|
||||
|
||||
OUTPUT_PATH=static/third/emoji-data
|
||||
COMMIT_FILE_PATH=$OUTPUT_PATH/commit
|
||||
COMMIT=b588e200268d6c3c1d20d5ecdfe4634a68a6f947 # Change this to upgrade
|
||||
|
||||
mkdir -p "$OUTPUT_PATH"
|
||||
|
||||
if [ -e "$COMMIT_FILE_PATH" ]
|
||||
then
|
||||
CURRENT_COMMIT=`cat $COMMIT_FILE_PATH`
|
||||
else
|
||||
CURRENT_COMMIT=00
|
||||
fi
|
||||
|
||||
if [ "$CURRENT_COMMIT" == "$COMMIT" ]; then
|
||||
echo "Already at latest version of iamcal's dataset."
|
||||
else
|
||||
wget "https://raw.githubusercontent.com/iamcal/emoji-data/$COMMIT/emoji_pretty.json" -O "$OUTPUT_PATH/emoji.json"
|
||||
wget "https://raw.githubusercontent.com/iamcal/emoji-data/$COMMIT/sheet_apple_32.png" -O "$OUTPUT_PATH/sheet_apple_32.png"
|
||||
wget "https://raw.githubusercontent.com/iamcal/emoji-data/$COMMIT/sheet_emojione_32.png" -O "$OUTPUT_PATH/sheet_emojione_32.png"
|
||||
wget "https://raw.githubusercontent.com/iamcal/emoji-data/$COMMIT/sheet_google_32.png" -O "$OUTPUT_PATH/sheet_google_32.png"
|
||||
wget "https://raw.githubusercontent.com/iamcal/emoji-data/$COMMIT/sheet_twitter_32.png" -O "$OUTPUT_PATH/sheet_twitter_32.png"
|
||||
echo "$COMMIT" > "$COMMIT_FILE_PATH"
|
||||
fi
|
|
@ -37,10 +37,6 @@ fp = open('var/log/update-prod-static.log', 'w')
|
|||
# Install node packages
|
||||
setup_node_modules(npm_args=['--production'], stdout=fp, stderr=fp)
|
||||
|
||||
# Download emoji data
|
||||
subprocess.check_call(['./tools/setup/emoji/download-emoji-data'],
|
||||
stdout=fp, stderr=fp)
|
||||
|
||||
# Build emoji
|
||||
subprocess.check_call(['./tools/setup/emoji/build_emoji'],
|
||||
stdout=fp, stderr=fp)
|
||||
|
|
Loading…
Reference in New Issue