mirror of
https://github.com/ful1e5/apple_cursor.git
synced 2025-05-13 14:44:45 -04:00
📦 Crisp Windows Cursor package
This commit is contained in:
parent
e7d509295b
commit
5f99e0565a
1 changed files with 16 additions and 4 deletions
20
helper.py
20
helper.py
|
@ -2,8 +2,8 @@ import shutil
|
|||
import json
|
||||
import sys
|
||||
|
||||
from config import name, temp_folder, bitmaps_dir, win_out, x11_out
|
||||
from os import path, listdir
|
||||
from config import name, temp_folder, bitmaps_dir, win_out, x11_out, window_install_inf, windows_cursors
|
||||
from os import path, listdir, rename, remove
|
||||
|
||||
|
||||
package_dir = "./packages"
|
||||
|
@ -12,9 +12,21 @@ win_out_dir = path.join(package_dir, win_out)
|
|||
|
||||
|
||||
def window_bundle() -> None:
|
||||
# Remove & Rename cursors
|
||||
# If Key found => Rename else Remove
|
||||
for cursor in listdir(win_out_dir):
|
||||
old_path = path.join(win_out_dir, cursor)
|
||||
|
||||
# TODO: Where is Body !!!!!
|
||||
pass
|
||||
try:
|
||||
new_path = path.join(win_out_dir, windows_cursors[cursor])
|
||||
rename(old_path, new_path)
|
||||
except KeyError:
|
||||
remove(old_path)
|
||||
|
||||
# creating install.inf file
|
||||
install_inf_path = path.join(win_out_dir, "install.inf")
|
||||
with open(install_inf_path, "w") as file:
|
||||
file.write(install_inf_path)
|
||||
|
||||
|
||||
def init_build() -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue