mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-20 18:25:13 -04:00
🏗 Theme builder
This commit is contained in:
parent
e23b5f9d82
commit
b85800cb82
1 changed files with 30 additions and 0 deletions
30
build.py
Normal file
30
build.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue