mirror of
https://github.com/ful1e5/apple_cursor.git
synced 2025-05-13 14:44:45 -04:00
⚠ Bitmaps directory not found warning
This commit is contained in:
parent
7de73a397c
commit
dba7819593
1 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
import shutil
|
||||
import sys
|
||||
|
||||
from config import name, temp_folder, win_out, x11_out
|
||||
from config import name, temp_folder, bitmaps_dir, win_out, x11_out
|
||||
from os import path, listdir
|
||||
|
||||
|
||||
|
@ -11,10 +12,14 @@ win_out_dir = path.join(package_dir, win_out)
|
|||
|
||||
def init_build() -> None:
|
||||
"""
|
||||
Remove previously built packages.
|
||||
Remove previously built packages && Check Bitmaps.
|
||||
"""
|
||||
if path.exists(package_dir):
|
||||
shutil.rmtree(package_dir)
|
||||
if not path.exists(bitmaps_dir):
|
||||
print(
|
||||
"⚠ Bitmaps Not generated.\n\n Follow Command to generate bitmaps\n `yarn render`")
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def pack_it() -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue