Skip to content

Free Motion Capture for Everyone πŸ’€βœ¨

TypeScript

commit after a gap

jonmatthis9fd28188e17a
diff --git a/bin/build_installer/__init__.py b/bin/build_installer/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/bin/build_installer/run_pyinstaller.py b/bin/build_installer/run_pyinstaller.py
new file mode 100644
index 00000000..6c366595
--- /dev/null
+++ b/bin/build_installer/run_pyinstaller.py
@@ -0,0 +1,28 @@
+import logging
+import os
+from pathlib import Path
+
+import PyInstaller.__main__
+
+logger = logging.getLogger(__name__)
+
+os.environ['PYINSTALLER_NO_CONDA'] = '1'
+
+SPEC_FILE_PATH = str(Path(__file__).parent / 'freemocap.spec')
+if not Path(SPEC_FILE_PATH).exists():
+ raise FileNotFoundError(f"Spec file not found at {SPEC_FILE_PATH}")
+
+
+def run_pyinstaller():
+ print(f"Running PyInstaller with spec file {SPEC_FILE_PATH}...")
+
+ installer_parameters = [
+ SPEC_FILE_PATH,
+ '--log-level', 'INFO'
+ ]
+
+ PyInstaller.__main__.run(installer_parameters)
+
+
+if __name__ == "__main__":
+ run_pyinstaller()
diff --git a/freemocap-ui/package.json b/freemocap-ui/package.json
index 8a793cba..794ff0a8 100644
--- a/freemocap-ui/package.json
+++ b/freemocap-ui/package.json
@@ -25,10 +25,12 @@
"@msgpack/msgpack": "^3.0.0-beta2",
"@mui/icons-material": "^6.1.1",
"@mui/material": "^6.1.1",
+ "@reduxjs/toolkit": "^2.3.0",
"axios": "^1.7.7",
"electron-updater": "^6.1.8",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0",
+ "react-redux": "^9.1.2",
"react-router": "^6.26.2",
"react-router-dom": "^6.26.2",
"react-use": "^17.5.1",
diff --git a/freemocap/system/logging_configuration/logger_builder.py b/freemocap/system/logging_configuration/logger_builder.py
index dedc3435..245a7044 100644
--- a/freemocap/system/logging_configuration/logger_builder.py
+++ b/freemocap/system/logging_configuration/logger_builder.py
@@ -52,7 +52,7 @@ class LoggerBuilder:
DEFAULT_LOGGING = {"version": 1, "disable_existing_loggers": False}
# https://www.alt-codes.net/editor.php
format_string = (
- "β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€<%(levelname)8s >─ %(delta_t)s | %(name)s.%(funcName)s():%(lineno)s | %(asctime)s | PID:%(process)d:%(processName)s TID:%(thread)d:%(threadName)s \n%(message)s"
+ "%(message)s||-<%(levelname)8s >─ %(delta_t)s | %(name)s.%(funcName)s():%(lineno)s | %(asctime)s | PID:%(process)d:%(processName)s TID:%(thread)d:%(threadName)s"
)
def __init__(self, level: LogLevels):
diff --git a/pyproject.toml b/pyproject.toml
index ba0d945c..20628660 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -9,6 +9,7 @@ dependencies = [
"freemocap-blender-addon",
"libsass>=0.23.0",
"opencv-contrib-python>=4.8.1.78",
+ "pyinstaller>=6.11.0",
"requests>=2.32.3",
"skelly-synchronize",
"skelly-viewer",
@@ -29,4 +30,4 @@ skelly-synchronize = { git = "https://github.com/freemocap/skelly_synchronize" }
freemocap = "freemocap.__main__:main"
[tool.uv]
-package = true
\ No newline at end of file
+package = true
diff --git a/uv.lock b/uv.lock
index 7252ca8f..b7501a53 100644
--- a/uv.lock
+++ b/uv.lock
@@ -407,6 +407,7 @@ dependencies = [
{ name = "freemocap-blender-addon" },
{ name = "libsass" },
{ name = "opencv-contrib-python" },
+ { name = "pyinstaller" },
{ name = "requests" },
{ name = "skelly-synchronize" },
{ name = "skelly-viewer" },
@@ -421,6 +422,7 @@ requires-dist = [
{ name = "freemocap-blender-addon", git = "https://github.com/freemocap/freemocap_blender_addon" },
{ name = "libsass", specifier = ">=0.23.0" },
{ name = "opencv-contrib-python", specifier = ">=4.8.1.78" },
+ { name = "pyinstaller", specifier = ">=6.11.0" },
{ name = "requests", specifier = ">=2.32.3" },
{ name = "skelly-synchronize", git = "https://github.com/freemocap/skelly_synchronize" },
{ name = "skelly-viewer", git = "https://github.com/freemocap/skellyviewer" },