1.2 KiB
1.2 KiB
ManeshTraderMac (Xcode Shell App)
This Xcode app is a native macOS shell around the existing Streamlit trading app.
What It Does
- Auto-starts backend when the app launches
- Starts/stops a bundled backend executable from app resources
- Embeds the local UI using
WKWebViewathttp://127.0.0.1:8501 - Keeps users inside the app window (no external browser required)
Build Self-Contained App
- From project root, build the embedded backend + macOS app:
./scripts/build_selfcontained_mac_app.sh
- Output app bundle:
dist-mac/<timestamp>/ManeshTraderMac.app
- Optional DMG packaging:
APP_BUNDLE_PATH="dist-mac/<timestamp>/ManeshTraderMac.app" ./scripts/create_installer_dmg.sh
Run in Xcode
- Generate embedded backend binary:
./scripts/build_embedded_backend.sh
- Open
ManeshTraderMac/ManeshTraderMac.xcodeproj - Build/Run the
ManeshTraderMacscheme - The app auto-starts backend on launch
Notes
- Backend source of truth is the root web app (
app.py,manesh_trader/). scripts/build_embedded_backend.shcompiles those files into:ManeshTraderMac/ManeshTraderMac/EmbeddedBackend/ManeshTraderBackend
- The Swift host launches that embedded binary directly from the installed app bundle.