mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-18 09:04:38 -04:00
⚡ distribute version number from config.py
This commit is contained in:
parent
2acd9a418a
commit
8dea8c690f
2 changed files with 3 additions and 5 deletions
|
@ -27,6 +27,7 @@ for directory in os.listdir(bitmaps_dir):
|
||||||
with open("./package.json") as f:
|
with open("./package.json") as f:
|
||||||
data = json.loads(f.read())
|
data = json.loads(f.read())
|
||||||
author = data["author"]
|
author = data["author"]
|
||||||
|
version = data["version"]
|
||||||
|
|
||||||
# Windows Cursors Config
|
# Windows Cursors Config
|
||||||
windows_cursors = {
|
windows_cursors = {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import json
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from os import path, listdir, rename, remove
|
from os import path, listdir, rename, remove
|
||||||
from config import name, bitmaps_dir, out_dir, window_install_inf_content, windows_cursors
|
from config import name, version, bitmaps_dir, out_dir, window_install_inf_content, windows_cursors
|
||||||
|
|
||||||
|
|
||||||
def window_bundle(win_out_dir: str) -> None:
|
def window_bundle(win_out_dir: str) -> None:
|
||||||
|
@ -31,9 +31,6 @@ def init_build() -> None:
|
||||||
Print build version.
|
Print build version.
|
||||||
Remove previously built packages && Check Bitmaps.
|
Remove previously built packages && Check Bitmaps.
|
||||||
"""
|
"""
|
||||||
with open("./package.json", "r") as package_file:
|
|
||||||
data = json.loads(package_file.read())
|
|
||||||
version = data['version']
|
|
||||||
print("⚡ Bibata Builder Version %s" % version)
|
print("⚡ Bibata Builder Version %s" % version)
|
||||||
|
|
||||||
# cleanup old packages
|
# cleanup old packages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue