Midday / apps /desktop /README.md
Jules
Final deployment with all fixes and verified content
c09f67c

Midday Desktop App

A Tauri-based desktop application for Midday that supports multiple environments with a native transparent titlebar on macOS.

Features

  • Environment Support: Development, Staging, and Production environments
  • Transparent Titlebar: Native macOS transparent titlebar with traffic light buttons
  • Responsive Design: Minimum window size of 1450x900 for optimal experience

Environment Configuration

The desktop app supports three environments, each loading a different URL:

  • Development: http://localhost:3001
  • Staging: https://beta.midday.ai
  • Production: https://app.midday.ai

Running the App

Development Mode

# Run in development environment (loads localhost:3001)
bun run tauri:dev

Staging Mode

# Run in staging environment (loads beta.midday.ai)
bun run tauri:staging

Production Mode

# Run in production environment (loads app.midday.ai)
bun run tauri:prod

Building the App

Development Build

bun run tauri:build

Staging Build

bun run tauri:build:staging

Production Build

bun run tauri:build:prod

Environment Variable

The environment is controlled by the MIDDAY_ENV environment variable:

  • development or devhttp://localhost:3001
  • staginghttps://beta.midday.ai
  • production or prodhttps://app.midday.ai

If no environment is specified, it defaults to development mode.

Manual Environment Setting

You can also set the environment manually:

# macOS/Linux
MIDDAY_ENV=staging tauri dev

# Windows (PowerShell)
$env:MIDDAY_ENV="staging"; tauri dev

# Windows (Command Prompt)
set MIDDAY_ENV=staging && tauri dev