🏗 Theme builder

This commit is contained in:
ful1e5 2020-08-23 18:32:58 +05:30
parent e23b5f9d82
commit b85800cb82

30
build.py Normal file
View file

@ -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)