diff --git a/build.py b/build.py new file mode 100644 index 00000000..dfcbfc28 --- /dev/null +++ b/build.py @@ -0,0 +1,30 @@ +import json +from clickgen import build_cursor_theme + +from config import configs, sizes, delay, temp_folder +from helper import init_build, pack_it + + +def build(config) -> None: + init_build() + + build_cursor_theme( + config['name'], + image_dir=config['bitmaps_dir'], + cursor_sizes=sizes, + out_path=config['temp_folder'], + hotspots=hotspots, + archive=False, + delay=delay) + + pack_it(config) + + +if __name__ == "__main__": + # read hotspots file + with open('./hotspots.json', 'r') as hotspot_file: + hotspots = json.loads(hotspot_file.read()) + + # building themes + for config in configs: + build(config)