Skip to content

Commit

Permalink
version file, bump version to v2.1.0b2
Browse files Browse the repository at this point in the history
  • Loading branch information
I5UCC committed Feb 6, 2024
1 parent 0b9b998 commit eb26a05
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v2.1.0b2
6 changes: 4 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ def stop() -> None:

logging.basicConfig(level=logging.DEBUG if len(sys.argv) > 1 else logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S', handlers=[logging.StreamHandler(), logging.FileHandler(get_absolute_path("log.log"))])

VERSION = open(get_absolute_path("VERSION")).read().strip()

# Argument Parser
parser = argparse.ArgumentParser(description='ThumbParamsOSC: Takes button data from SteamVR and sends it to an OSC-Client')
parser.add_argument('-d', '--debug', required=False, action='store_true', help='prints values for debugging')
Expand All @@ -227,7 +229,7 @@ def stop() -> None:

if os.name == 'nt':
try:
ctypes.windll.kernel32.SetConsoleTitleW("ThumbParamsOSC v2.1.0-Beta1" + (" (Debug)" if debug else ""))
ctypes.windll.kernel32.SetConsoleTitleW(f"ThumbParamsOSC {VERSION}" + (" (Debug)" if debug else ""))
except Exception:
pass

Expand Down Expand Up @@ -259,7 +261,7 @@ def stop() -> None:
input("\nPress ENTER to exit")
stop()

logging.info("ThumbParamsOSC running...")
logging.info(f"ThumbParamsOSC {VERSION} running...")
logging.info(f"IP: {osc.ip}")
logging.info(f"Port: {osc.port}")
logging.info(f"Server Port: {osc.server_port}")
Expand Down
6 changes: 4 additions & 2 deletions src/setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
from cx_Freeze import setup, Executable

VERSION = open("VERSION").read().strip()

packages = ["argparse", "async_timeout", "certifi", "charset_normalizer", "idna", "ifaddr", "inputs", "lief", "openvr", "psutil", "pyparsing", "pythonosc", "requests", "urllib3", "zeroconf", "ctypes"]
exclude = ["tkinter", "lib2to3", "test", "unittest", "xmlrpc"]
file_include = ["config.json", "Run Debug Mode.bat", "bindings/", "app.vrmanifest"]
file_include = ["config.json", "Run Debug Mode.bat", "bindings/", "app.vrmanifest", "VERSION"]
bin_excludes = ["_bz2.pyd", "_decimal.pyd", "_hashlib.pyd", "_lzma.pyd", "_queue.pyd", "_ssl.pyd", "libcrypto-1_1.dll", "libssl-1_1.dll", "ucrtbase.dll", "VCRUNTIME140.dll"]

build_exe_options = {"packages": packages, "excludes": exclude, "include_files": file_include, "bin_excludes": bin_excludes}

setup(
name="ThumbParamsOSC",
version="2.1.0.b1",
version=VERSION,
description="ThumbParamsOSC",
options={"build_exe": build_exe_options},
executables=[Executable("main.py", target_name="ThumbParamsOSC.exe", base=False, icon="icon.ico"), Executable("main.py", target_name="ThumbParamsOSC_NoConsole.exe", base="Win32GUI", icon="icon.ico")],
Expand Down

0 comments on commit eb26a05

Please sign in to comment.