Bibata_Cursor/build.py

34 lines
737 B
Python
Raw Normal View History

2020-08-23 09:02:58 -04:00
import json
2020-08-23 09:56:45 -04:00
2020-08-23 09:02:58 -04:00
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:
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__":
2020-08-23 09:56:45 -04:00
init_build()
2020-08-23 09:02:58 -04:00
# read hotspots file
with open('./hotspots.json', 'r') as hotspot_file:
hotspots = json.loads(hotspot_file.read())
# building themes
for config in configs:
2020-08-23 09:56:45 -04:00
print('🌈 Building %s Theme ...' % config['name'])
2020-08-23 09:02:58 -04:00
build(config)