Skip to content

Commit

Permalink
refactor: versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
kernel-dev committed Dec 23, 2022
1 parent db116c4 commit cb06274
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
12 changes: 1 addition & 11 deletions src/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,10 @@

dir_delim = "\\" if platform.system().lower() == "windows" else "/"

def get_latest_version():
with open(os.path.dirname(__file__) + "{0}util{0}version.json".format(dir_delim), "r") as version_file:
data = version_file.read()

version = json.loads(data).get("version", "v0.0.0-bugged")

version_file.close()

return version


class AppInfo:
name = "OCSysInfo"
version = get_latest_version()
version = "v1.0.8"
os_ver = ""
arch = platform.machine()
root_dir = ""
Expand Down
3 changes: 0 additions & 3 deletions src/util/version.json

This file was deleted.

0 comments on commit cb06274

Please sign in to comment.