mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-17 08:34:39 -04:00
🚀 builder info added
This commit is contained in:
parent
48e5b42df3
commit
047ecf63d6
3 changed files with 14 additions and 11 deletions
|
@ -4,5 +4,9 @@
|
||||||
from .log import save_logs_to_file
|
from .log import save_logs_to_file
|
||||||
save_logs_to_file()
|
save_logs_to_file()
|
||||||
|
|
||||||
|
__name__: str = "builder"
|
||||||
__version__: str = "1.0.1"
|
__version__: str = "1.0.1"
|
||||||
__author__: str = "Kaiz Khatri"
|
__author__: str = "Kaiz Khatri"
|
||||||
|
__info__: str = "⚡ Bibata Builder - v%s" % __version__
|
||||||
|
__email__: str = "kaizmandhu@gmail.com"
|
||||||
|
__url__: str = "https://github.com/ful1e5/Bibata_Cursor/"
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
from os import path
|
from os import path, mkdir
|
||||||
|
|
||||||
from . import __path__, __author__
|
from . import __path__, __author__
|
||||||
|
|
||||||
|
@ -32,7 +31,7 @@ class ConfigProvider():
|
||||||
if path.exists(out_dir):
|
if path.exists(out_dir):
|
||||||
shutil.rmtree(out_dir)
|
shutil.rmtree(out_dir)
|
||||||
|
|
||||||
os.mkdir(out_dir)
|
mkdir(out_dir)
|
||||||
|
|
||||||
# Checking Bitmaps directory
|
# Checking Bitmaps directory
|
||||||
if not path.exists(bitmaps_dir):
|
if not path.exists(bitmaps_dir):
|
||||||
|
@ -40,9 +39,9 @@ class ConfigProvider():
|
||||||
"⚠ BITMAPS NOT FOUND.\n\n`yarn install && yarn render` to Generates Bitmaps")
|
"⚠ BITMAPS NOT FOUND.\n\n`yarn install && yarn render` to Generates Bitmaps")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
self.bitmaps_dir: str = bitmaps_dir
|
self.bitmaps_dir: str = path.abspath(bitmaps_dir)
|
||||||
self.temp_out_dir: str = tempfile.mkdtemp()
|
self.temp_out_dir: str = tempfile.mkdtemp()
|
||||||
self.out_dir: str = out_dir
|
self.out_dir: str = path.abspath(out_dir)
|
||||||
|
|
||||||
def get_windows_script(self, theme_name: str) -> str:
|
def get_windows_script(self, theme_name: str) -> str:
|
||||||
"""
|
"""
|
||||||
|
|
12
setup.py
12
setup.py
|
@ -1,16 +1,16 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from builder import __version__
|
from builder import __name__, __version__, __author__, __info__, __email__, __url__
|
||||||
from setuptools import setup, find_namespace_packages
|
from setuptools import setup, find_namespace_packages
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="builder",
|
name=__name__,
|
||||||
version=__version__,
|
version=__version__,
|
||||||
description="Bibata theme builder 📦",
|
description=__info__,
|
||||||
url="https://github.com/ful1e5/Bibata_Cursor/",
|
url=__url__,
|
||||||
author="Kaiz Khatri",
|
author=__author__,
|
||||||
author_email="kaizmandhu@gmail.com",
|
author_email=__email__,
|
||||||
install_requires=["Pillow>=7.2.0", "clickgen>=1.1.7"],
|
install_requires=["Pillow>=7.2.0", "clickgen>=1.1.7"],
|
||||||
packages=find_namespace_packages(include=['builder']),
|
packages=find_namespace_packages(include=['builder']),
|
||||||
classifiers=[
|
classifiers=[
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue