Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
191 changes: 191 additions & 0 deletions .github/workflows/desktop-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
name: Build Desktop Releases

on:
push:
tags:
- 'desktop-v*'
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g. v0.1.0-desktop)'
required: false
default: ''

permissions:
contents: write

jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
target: aarch64-apple-darwin
label: macOS-ARM64
- os: macos-latest
target: x86_64-apple-darwin
label: macOS-x64
- os: windows-latest
target: x86_64-pc-windows-msvc
label: Windows-x64
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
label: Linux-x64

runs-on: ${{ matrix.os }}
name: Build (${{ matrix.label }})

steps:
- uses: actions/checkout@v4

# ── Node.js + pnpm ──────────────────────────────────
- uses: pnpm/action-setup@v4
with:
version: 10

- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'

- name: Install Node dependencies
run: pnpm install --frozen-lockfile

- name: Build Next.js standalone
shell: bash
run: |
npx next build
# Copy static assets into standalone (use rsync-style to avoid exists errors)
cp -r .next/static .next/standalone/.next/static
mkdir -p .next/standalone/public
cp -r public/* .next/standalone/public/

# ── Rust toolchain ──────────────────────────────────
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}

- uses: Swatinem/rust-cache@v2
with:
workspaces: wyr -> target

# ── Linux system deps (required by Tauri) ───────────
- name: Install Linux system dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf \
libgtk-3-dev \
libsoup-3.0-dev \
libjavascriptcoregtk-4.1-dev

# ── Build Tauri app ─────────────────────────────────
- name: Build Tauri desktop app
working-directory: wyr/wyr-app
shell: bash
run: npx @tauri-apps/cli build --target ${{ matrix.target }}

# ── Collect artifacts ───────────────────────────────
- name: Collect Windows artifacts
if: runner.os == 'Windows'
shell: bash
run: |
mkdir -p dist
cp "wyr/target/${{ matrix.target }}/release/bundle/nsis/"*.exe dist/ 2>/dev/null || true
cp "wyr/target/${{ matrix.target }}/release/bundle/msi/"*.msi dist/ 2>/dev/null || true
cp "wyr/target/release/bundle/nsis/"*.exe dist/ 2>/dev/null || true
cp "wyr/target/release/bundle/msi/"*.msi dist/ 2>/dev/null || true
ls -la dist/

- name: Collect macOS artifacts
if: runner.os == 'macOS'
shell: bash
run: |
mkdir -p dist
cp "wyr/target/${{ matrix.target }}/release/bundle/dmg/"*.dmg dist/ 2>/dev/null || true
cp "wyr/target/release/bundle/dmg/"*.dmg dist/ 2>/dev/null || true
ls -la dist/

- name: Collect Linux artifacts
if: runner.os == 'Linux'
shell: bash
run: |
mkdir -p dist
cp "wyr/target/${{ matrix.target }}/release/bundle/deb/"*.deb dist/ 2>/dev/null || true
cp "wyr/target/${{ matrix.target }}/release/bundle/appimage/"*.AppImage dist/ 2>/dev/null || true
cp "wyr/target/release/bundle/deb/"*.deb dist/ 2>/dev/null || true
cp "wyr/target/release/bundle/appimage/"*.AppImage dist/ 2>/dev/null || true
ls -la dist/

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: desktop-${{ matrix.label }}
path: dist/*
retention-days: 30

# ── Publish release ───────────────────────────────────
release:
needs: build
runs-on: ubuntu-latest
if: ${{ !failure() && (startsWith(github.ref, 'refs/tags/desktop-v') || github.event.inputs.tag != '') }}

steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true

- name: List artifacts
run: find artifacts -type f | sort

- name: Determine tag
id: tag
run: |
if [ -n "${{ github.event.inputs.tag }}" ]; then
echo "tag=${{ github.event.inputs.tag }}" >> "$GITHUB_OUTPUT"
else
echo "tag=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
fi

- name: Create or update release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.tag.outputs.tag }}
name: Dossier Desktop ${{ steps.tag.outputs.tag }}
prerelease: true
files: artifacts/**/*
body: |
# Dossier Desktop ${{ steps.tag.outputs.tag }}

Native desktop app for Dossier — the AI-native product building platform.

## Downloads

| Platform | File | Description |
|----------|------|-------------|
| **Windows** | `*_x64-setup.exe` | Windows installer (recommended) |
| **Windows** | `*_x64_en-US.msi` | Windows MSI installer |
| **macOS (Apple Silicon)** | `*_aarch64.dmg` | macOS M1/M2/M3/M4 |
| **macOS (Intel)** | `*_x64.dmg` | macOS Intel |
| **Linux** | `*.deb` | Debian/Ubuntu package |
| **Linux** | `*.AppImage` | Portable Linux app |

## Requirements

- [Node.js 18+](https://nodejs.org/) installed on your system
- [Anthropic API key](https://console.anthropic.com/) for AI features
- Run `pnpm run build` in the Dossier project root before first launch

## First launch

1. Install and open the app
2. Wait a few seconds for the server to start
3. Set up your API key at `/setup`
4. Start planning!
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ next-env.d.ts
.claude/
.DS_Store

# Rust build artifacts
wyr/target/

# Tauri auto-generated schemas
wyr/wyr-app/gen/

# marketing / download site (website/)
website/node_modules
website/dist
Expand Down
22 changes: 22 additions & 0 deletions .mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"mcpServers": {
"claude-flow": {
"command": "cmd",
"args": [
"/c",
"npx",
"@claude-flow/cli@latest",
"mcp",
"start"
],
"env": {
"CLAUDE_FLOW_MODE": "v3",
"CLAUDE_FLOW_HOOKS_ENABLED": "true",
"CLAUDE_FLOW_TOPOLOGY": "hierarchical-mesh",
"CLAUDE_FLOW_MAX_AGENTS": "15",
"CLAUDE_FLOW_MEMORY_BACKEND": "hybrid"
},
"autoStart": false
}
}
}
Loading