Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

docs(desktop): add build commands and configuration guide to .env.example

Naiyuan Qing5c5ac766939f
diff --git a/apps/desktop/.env.example b/apps/desktop/.env.example
index 18f56e2144..d6547f7e61 100644
--- a/apps/desktop/.env.example
+++ b/apps/desktop/.env.example
@@ -2,31 +2,73 @@
# Multica Desktop Environment Configuration
# =============================================================================
#
-# Local Development:
-# Just run `pnpm dev` - no .env file needed (uses defaults)
+# This file documents all available environment variables for Desktop builds.
+# Copy this file and rename it based on your target environment.
+#
+# =============================================================================
+# Build Commands
+# =============================================================================
+#
+# Development (no .env file needed):
+# pnpm dev # Uses hardcoded dev defaults
#
# Staging Build:
-# `pnpm build:staging` uses .env.staging
+# pnpm build:staging # Uses .env.staging
#
# Production Build:
-# `pnpm build` uses .env.production
+# pnpm build:production # Uses .env.production
#
-# Variable naming convention:
-# MAIN_VITE_* - Main process only (Node.js, full system access)
-# RENDERER_VITE_* - Renderer process only (browser context)
-# VITE_* - All processes
+# Default Build (uses .env.production):
+# pnpm build:desktop # Same as build:production
#
# =============================================================================
-# URL Configuration
+# Build Output
# =============================================================================
#
-# MAIN_VITE_GATEWAY_URL - WebSocket Gateway
-# Hub connects to Gateway for remote device access (QR code pairing)
+# After build completes, installer packages are located at:
+#
+# apps/desktop/release/{version}/
+# ├── Multica-{version}-arm64.dmg # macOS Apple Silicon
+# ├── Multica-{version}-x64.dmg # macOS Intel
+# ├── Multica-Windows-{version}-Setup.exe # Windows
+# ├── Multica-Linux-{version}.AppImage # Linux AppImage
+# └── Multica-Linux-{version}.deb # Linux deb
#
-# MAIN_VITE_WEB_URL - Web App URL
-# Desktop opens this URL for user login (OAuth flow)
+# Compiled code (before packaging) is in:
+# apps/desktop/out/
#
# =============================================================================
+# Configuration Guide
+# =============================================================================
+#
+# For production builds, create .env.production with the following variables:
+#
+# Required:
+# MAIN_VITE_GATEWAY_URL - WebSocket Gateway URL for remote connections
+# MAIN_VITE_WEB_URL - Web App URL for OAuth login flow
+#
+# Example .env.production:
+# MAIN_VITE_GATEWAY_URL=https://gateway.multica.ai
+# MAIN_VITE_WEB_URL=https://www.multica.ai
+#
+# =============================================================================
+# Variable Naming Convention
+# =============================================================================
+#
+# MAIN_VITE_* - Main process only (Node.js, full system access)
+# RENDERER_VITE_* - Renderer process only (browser context)
+# VITE_* - All processes
+#
+# =============================================================================
+# Environment Variables
+# =============================================================================
+# MAIN_VITE_GATEWAY_URL
+# WebSocket Gateway URL - Hub connects here for remote device access (QR code pairing)
+# Production example: https://gateway.multica.ai
MAIN_VITE_GATEWAY_URL=http://localhost:3000
+
+# MAIN_VITE_WEB_URL
+# Web App URL - Desktop opens this URL for user login (OAuth flow)
+# Production example: https://www.multica.ai
MAIN_VITE_WEB_URL=http://localhost:3000