diff --git a/desktop/build-windows.bat b/desktop/build-windows.bat index 3f5fd96..0c508c0 100644 --- a/desktop/build-windows.bat +++ b/desktop/build-windows.bat @@ -27,6 +27,9 @@ del python-embed.zip REM Enable pip and site-packages in embedded Python echo import site >> python-embed\python311._pth +REM Add parent dir to Python path so 'import backend' works at runtime (for bundle) +echo ..>> python-embed\python311._pth + REM Download get-pip.py (embed Python doesn't include ensurepip) echo 📥 Downloading get-pip.py... curl -L -o get-pip.py "https://bootstrap.pypa.io/get-pip.py" diff --git a/desktop/tauri.conf.json b/desktop/tauri.conf.json index 27efebe..b8bf978 100644 --- a/desktop/tauri.conf.json +++ b/desktop/tauri.conf.json @@ -28,12 +28,6 @@ ], "security": { "csp": "default-src 'self' http://127.0.0.1:*; script-src 'self' 'unsafe-inline' 'unsafe-eval' http://127.0.0.1:* https://cdn.jsdelivr.net https://cdnjs.cloudflare.com https://unpkg.com https://esm.sh; style-src 'self' 'unsafe-inline' http://127.0.0.1:* https://cdnjs.cloudflare.com https://fonts.googleapis.com; font-src 'self' http://127.0.0.1:* https://fonts.gstatic.com; img-src 'self' data: blob: http://127.0.0.1:* https:; connect-src 'self' http://127.0.0.1:* ws://127.0.0.1:*;" - }, - "trayIcon": { - "iconPath": "icons/icon.png", - "iconAsTemplate": true, - "tooltip": "ObsiGate", - "menuOnLeftClick": false } }, "bundle": { @@ -46,6 +40,11 @@ "icons/icon.icns", "icons/icon.ico" ], + "resources": [ + "python-embed/**/*", + "../backend/**/*", + "../frontend/**/*" + ], "fileAssociations": [ { "ext": ["md", "markdown", "txt"],