Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Cross-Platform Build Expert

БесплатноБез исполняемых скриптовНе проверен

Expert in building desktop applications for Windows, macOS, and Linux with focus on platform-specific configurations, code signing, and distribution…

martinholovskyот martinholovsky★ 48 звёзд на GitHub

Об этом скилле

Cross-Platform Build Expert

0. Mandatory Reading Protocol

CRITICAL: Before implementing ANY platform-specific build configuration, you MUST read the relevant reference files:

Trigger Conditions for Reference Files

Read references/advanced-patterns.md WHEN:

  • Configuring platform-specific build matrices
  • Setting up conditional compilation
  • Implementing platform-specific features
  • Optimizing build sizes and performance

Read references/security-examples.md WHEN:

  • Setting up code signing certificates
  • Configuring notarization for macOS
  • Implementing secure build environments
  • Managing signing credentials

1. Overview

Risk Level: MEDIUM

Justification: Cross-platform builds involve code signing credentials, platform-specific security configurations, and distribution through various app stores. Improper signing leads to security warnings, failed installations, or rejected submissions. Build configurations can also leak sensitive information or create platform-specific vulnerabilities.

You are an expert in cross-platform desktop application builds, specializing in:

  • Platform-specific configurations for Windows, macOS, and Linux
  • Code signing and notarization procedures
  • Distribution requirements for each platform
  • Build optimization for size and performance
  • Tauri configuration for multi-platform builds

Primary Use Cases

  • Building Tauri applications for all desktop platforms
  • Setting up code signing for trusted distribution
  • Configuring CI/CD for multi-platform builds
  • Optimizing application bundles
  • Meeting platform distribution requirements

2. Core Principles

  1. TDD First - Write build configuration tests before implementing
  2. Performance Aware - Optimize build times, bundle sizes, and startup
  3. Test on all target platforms - Don't assume cross-platform compatibility
  4. Use platform abstractions - Rust std, Tauri APIs for platform differences
  5. Handle path differences - Forward vs backward slashes, case sensitivity
  6. Respect platform conventions - File locations, UI guidelines
  7. Sign all releases - Users trust signed applications
  8. Protect signing credentials - Never commit certificates
  9. Verify signatures - Check before distribution
  10. Use timestamping - Signatures remain valid after certificate expiry

3. Technical Foundation

3.1 Platform Build Targets

Platform Rust Target Tauri Bundle
Windows x64 x86_64-pc-windows-msvc msi, nsis
Windows ARM aarch64-pc-windows-msvc msi, nsis
macOS Intel x86_64-apple-darwin dmg, app
macOS Apple Silicon aarch64-apple-darwin dmg, app
Linux x64 x86_64-unknown-linux-gnu deb, appimage
Linux ARM aarch64-unknown-linux-gnu deb, appimage

3.2 Build Dependencies

Windows:

  • Visual Studio Build Tools
  • Windows SDK
  • WebView2 Runtime (bundled by Tauri)

macOS:

  • Xcode Command Line Tools
  • Apple Developer Certificate
  • App-specific password for notarization

Linux:

  • GTK3 development libraries
  • WebKitGTK
  • AppIndicator (for system tray)

4. Implementation Patterns

4.1 Tauri Configuration

// tauri.conf.json
{
  "build": {
    "beforeBuildCommand": "npm run build",
    "beforeDevCommand": "npm run dev",
    "devPath": "http://localhost:3000",
    "distDir": "../dist"
  },
  "package": {
    "productName": "MyApp",
    "version": "1.0.0"
  },
  "tauri": {
    "bundle": {
      "active": true,
      "identifier": "com.company.myapp",
      "icon": [
        "icons/32x32.png",
        "icons/128x128.png",
        "icons/[email protected]",
        "icons/icon.icns",
        "icons/icon.ico"
      ],
      "targets": "all",
      "windows": {
        "certificateThumbprint": null,
        "digestAlgorithm": "sha256",
        "timestampUrl": "http://timestamp.digicert.com",
        "wix": {
          "language": "en-US"
        }
      },
      "macOS": {
        "entitlements": "./entitlements.plist",
        "exceptionDomain": "",
        "frameworks": [],
        "minimumSystemVersion": "10.15",
        "signingIdentity": null
      },
      "linux": {
        "deb": {
          "depends": ["libgtk-3-0", "libwebkit2gtk-4.0-37"]
        },
        "appimage": {
          "bundleMediaFramework": true
        }
      }
    },
    "security": {
      "csp": "default-src 'self'; script-src 'self'"
    }
  }
}

4.2 Platform-Specific Code

// src-tauri/src/main.rs

#[cfg(target_os = "windows")]
fn platform_init() {
    // Windows-specific initialization
    use windows::Win32::System::Console::SetConsoleOutputCP;
    unsafe { SetConsoleOutputCP(65001); }  // UTF-8 support
}

#[cfg(target_os = "macos")]
fn platform_init() {
    // macOS-specific initialization
    // Handle Dock, menu bar, etc.
}

#[cfg(target_os = "linux")]
fn platform_init() {
    // Linux-specific initialization
    // Handle
Полный SKILL.md на GitHub

Установить Cross-Platform Build Expert в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/advanced-patterns.mdreferences/security-examples.md

FAQ

Что делает скилл Cross-Platform Build Expert?

Expert in building desktop applications for Windows, macOS, and Linux with focus on platform-specific configurations, code signing, and distribution requirements

Как установить скилл Cross-Platform Build Expert?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Cross-Platform Build Expert запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Cross-Platform Build Expert с