From 5eec570a72174873e3b0e03a8c0f45f50139a800 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 25 Aug 2015 16:09:58 +0100 Subject: [PATCH] Added support for gifs --- assets/build-assets.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/build-assets.py b/assets/build-assets.py index e26ba77..4e7e952 100644 --- a/assets/build-assets.py +++ b/assets/build-assets.py @@ -5,18 +5,19 @@ ASSETS_URL="https://raw.githubusercontent.com/RealOrangeOne/hipchat-emoticons-fo def get_icon_name(path): - return get_filename(path).replace('.png', '') + return get_filename(path).replace('.png', '').replace('.gif', '') def get_filename(path): return path.replace('assets/', '') -files = glob('assets/*.png') +files = glob('assets/*.png', 'assets/*.gif') images = [] for filename in files: images.append({get_icon_name(filename): ASSETS_URL + get_filename(filename)}) + image_decoder = {"images":images} image_decoder_json = json.dumps(image_decoder, indent=2, sort_keys=True)