apple_cursor/build.py

20 lines
540 B
Python
Raw Normal View History

2020-07-28 02:54:08 -04:00
import json
2020-08-26 02:32:00 -04:00
import log
2020-07-28 02:54:08 -04:00
from clickgen import build_cursor_theme
2020-07-29 01:04:12 -04:00
from config import name, sizes, delay, bitmaps_dir, temp_folder
2020-07-29 01:11:11 -04:00
from helper import init_build, pack_it
2020-07-28 07:32:27 -04:00
2020-07-28 07:32:47 -04:00
2020-07-29 01:04:12 -04:00
def build() -> None:
init_build()
with open('./hotspots.json', 'r') as hotspot_file:
hotspots = json.loads(hotspot_file.read())
build_cursor_theme(name, image_dir=bitmaps_dir,
cursor_sizes=sizes, out_path=temp_folder, hotspots=hotspots, archive=False, delay=delay)
2020-07-29 01:11:11 -04:00
pack_it()
2020-07-29 00:34:18 -04:00
2020-07-29 01:04:12 -04:00
if __name__ == "__main__":
build()