feat(toolbox): ui update

This commit is contained in:
2025-08-09 18:48:34 -04:00
parent d13484d282
commit b251bc34f3
30 changed files with 7525 additions and 1267 deletions

View File

@@ -16,3 +16,22 @@ subdir('build-python')
# Build python bindings
subdir('src-pybind')
# Bundle the Python backend for the Electron app
if get_option('build-py-backend')
pyinstaller_exe = find_program('pyinstaller', required : true)
electron_src_dir = meson.current_source_dir() / 'electron'
custom_target('fourdst-backend',
input : electron_src_dir / 'fourdst-backend.spec',
# The output is the directory that PyInstaller creates.
# We are interested in the executable inside it.
output : 'fourdst-backend',
# The command to run. We tell PyInstaller where to put the final executable.
command : [pyinstaller_exe, '--distpath', meson.current_build_dir() / 'electron/dist', '--workpath', meson.current_build_dir() / 'electron/build', '--noconfirm', '@INPUT@'],
# This ensures the backend is built whenever you run 'meson compile'.
build_by_default : true
)
endif