Desktop Setup

Use this guide when you want to run OCI Policy Analysis as a desktop application (Tkinter).

Choose Desktop Setup When

  • You want a local, single-user workflow.

  • You prefer the full tabbed desktop UI.

  • You do not need browser/server deployment.

Installation Options

Option A: Platform executable (no Python required)

  1. Go to the GitHub releases page.

  2. Download the latest build for your platform:

    • Windows: .exe installer

    • macOS: .app bundle (possibly in .zip/.dmg)

  3. Launch the app normally from your OS.

Helper Scripts (optional)

  • macOS/Linux:

./local-build.sh --mode desktop
./local-run.sh --mode desktop
  • Windows PowerShell:

./local-build.ps1 --mode desktop
./local-run.ps1 --mode desktop

Permissions & Authentication

Desktop mode uses the same OCI permissions/authentication models as other modes:

  • Named OCI profile

  • Instance principal

  • Session token

For complete policy statements and auth details, see setup_web.md (shared across modes).

Troubleshooting (Desktop)

  • Tkinter import failures: confirm OS Tk package / python.org build.

  • Python mismatch: use Python 3.12+.

  • Dependency issues: re-activate .venv, reinstall with pip install -e ..