Logo di Desktop Brand Builder

Desktop Brand Builder

OrganizzazionePopolare
QwenLM
desktop-brand-builder

Genera un pacchetto desktop Qwen Code con il tuo brand a partire dalla shell desktop Tauri, usando un brandId e un logo minimi. Usalo quando l'utente vuole un client desktop personalizzato, white-label o rebrandizzato, un programma di installazione, un DMG/EXE/AppImage/deb oppure creare con un solo clic una versione personalizzata dei pacchetti in packages/desktop.

Add to TypingMind

Panoramica

Pubblicato daQwenLM
Repositoryqwen-code
Nome della skilldesktop-brand-builder
Stelle
28.4K
Fork
3.2K
File inclusi
1
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 1

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da QwenLM su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Desktop Brand Builder in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/QwenLM/qwen-code/tree/main/packages/desktop/.agents/skills/desktop-brand-builder
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/QwenLM/qwen-code.git /tmp/qwen-code
mkdir -p .claude/skills
cp -r /tmp/qwen-code/packages/desktop/.agents/skills/desktop-brand-builder .claude/skills/desktop-brand-builder
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Desktop Brand Builder in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Desktop Brand Builder non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Desktop Brand Builder non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Desktop Brand Builder (Tauri shell)

Goal

Create a branded desktop package from packages/desktop with the least user input possible. The user should usually provide only:

text
brandId: acme-ai
logo: /absolute/path/to/logo.png
website: https://acme.ai

website is optional. Do not ask for app name, app id, artifact name, copyright, or updater endpoints unless the user explicitly asks to override them.

This skill replaces the Electron-era brand builder that lived in the older, since-deleted Electron packages/desktop (removed in PR 9085, before this Tauri shell took over that path). The Tauri shell is the only desktop implementation now; branding hooks are src-tauri/tauri.conf.json, src-tauri/icons/, and the bootstrap/ startup UI.

Input Rules

Required fields:

  • brandId: must match ^[a-z][a-z0-9-]*$
  • logo: local file path; must exist; .png recommended (square, >= 1024px)

Optional overrides:

  • website
  • appName
  • appId (Tauri bundle identifier)
  • artifactPrefix
  • updaterEndpoints (JSON array; empty array disables in-app updates)
  • updaterPubkey (base64 public key; required when updaterEndpoints is non-empty — must match the TAURI_SIGNING_PRIVATE_KEY used to sign your updater artifacts)
  • target: mac, win, linux, or all

If required input is missing, ask once:

text
请提供:
brandId: 例如 acme-ai,只能小写字母、数字、短横线
logo: 本地 logo 文件路径(建议 1024x1024 PNG)
website: 可选

Once the required fields are present, proceed without a confirmation step.

Derived Defaults

Infer missing values deterministically:

  • appName: title-case the hyphen-separated brandId; acme-ai becomes Acme AI
  • artifactPrefix: title-case the hyphen-separated brandId and join with hyphens; acme-ai becomes Acme-AI
  • appId: if website has a valid host, reverse the host labels and append .desktop; https://acme.ai becomes ai.acme.desktop
  • fallback appId: app.<brandId>.desktop
  • updaterEndpoints: empty by default. A branded build must never poll the official Qwen Code updater feed, and the official feed must never update a branded build. Only set endpoints when the user supplies their own feed.

Workflow

Work in an isolated build clone so the working repository stays clean:

bash
BUILD_ROOT="$PWD/brand-builds/<brandId>-<timestamp>"
mkdir -p "$BUILD_ROOT"
git clone --branch main --single-branch \
  https://github.com/QwenLM/qwen-code.git \
  "$BUILD_ROOT/qwen-code"
cd "$BUILD_ROOT/qwen-code"
git checkout -B brand-<brandId> origin/main

If the clone or checkout fails, stop and report the failure. Do not continue as if brand-<brandId> was created.

Create a temporary brand.json in the build directory:

json
{
  "brandId": "acme-ai",
  "logo": "/absolute/path/to/logo.png",
  "website": "https://acme.ai",
  "appName": "Acme AI",
  "appId": "ai.acme.desktop",
  "artifactPrefix": "Acme-AI",
  "updaterEndpoints": [],
  "updaterPubkey": ""
}

Install dependencies. The brand script itself only needs the desktop package's own node_modules, but npm run build:runtime shells out to the repo root (which uses cross-env and other root devDependencies), so the root install is also required before packaging:

bash
# Root dependencies (needed by build:runtime → cross-env, esbuild, etc.)
npm install

# Desktop package dependencies
cd packages/desktop
npm install --workspaces=false
cd ../..

Then run this skill's bundled brand creation script with plain Node (the script has no dependencies beyond Node >= 18):

bash
node packages/desktop/.agents/skills/desktop-brand-builder/scripts/brand-create.mjs \
  --shell-root /absolute/path/to/qwen-code/packages/desktop \
  --config /absolute/path/to/brand.json

The agent should not hand-edit tauri.conf.json, icon files, or bootstrap brand strings when this bundled script is available. The bundled script is the source of truth for patching config and generating resources.

What the script does:

  1. Patches src-tauri/tauri.conf.json: productName, identifier, bundle.shortDescription, and plugins.updater.endpoints. When updaterEndpoints is empty it also clears bundle.createUpdaterArtifacts and blanks the official plugins.updater.pubkey (set to empty string rather than deleted, because the updater plugin requires the field); a brand supplying its own feed must supply its own pubkey.
  2. Regenerates the full icon set from the logo via npx --yes @tauri-apps/cli icon <logo> (falls back to a warning if the CLI cannot run; in that case copy the logo over src-tauri/icons/icon.png manually and tell the user the remaining sizes are stale).
  3. Patches the bootstrap UI: page title, brand heading, startup strings in bootstrap/index.html and bootstrap/bootstrap.js, and replaces bootstrap/qwen-code-logo.svg usage with the brand logo.

Package with the current host target unless the user requested a target:

bash
cd packages/desktop
npm run build:runtime --workspaces=false
npx tauri build            # current platform

Cross-compile: build:runtime bundles the Node runtime for the platform indicated by QWEN_DESKTOP_TARGET (defaults to the host). When targeting a different platform you must re-run build:runtime with the env var set before each tauri build --target, otherwise the packaged artifact contains a wrong-arch Node binary and fails at launch with an exec format error:

bash
# Cross-compile: set QWEN_DESKTOP_TARGET and re-run build:runtime per target
QWEN_DESKTOP_TARGET=aarch64-apple-darwin npm run build:runtime --workspaces=false
npx tauri build --target aarch64-apple-darwin   # explicit macOS arm64

For target: all, iterate build:runtime → tauri build per target; run only targets supported by the current machine or CI environment. Do not claim cross-platform artifacts were produced unless the files exist. Artifacts land under packages/desktop/src-tauri/target/release/bundle/ for the host target, or src-tauri/target/<triple>/release/bundle/ when --target <triple> is used.

Signing and Updates

Branded builds are unsigned by default. The upstream release pipeline's signing secrets (Apple, Windows) and updater private key belong to the official Qwen Code releases only. For a brand that needs signed releases or in-app updates, set up separate credentials and a separate updater feed; do not reuse the upstream ones.

To generate a signing key pair for your updater feed:

bash
npx @tauri-apps/cli signer generate -w ~/.tauri/my-brand.key
# The .key file is the private key (set as TAURI_SIGNING_PRIVATE_KEY in
# your build CI). The corresponding .pub file contains the base64 public
# key — paste it into brand.json as updaterPubkey.

Validation

After packaging:

  1. Confirm the expected artifact exists under packages/desktop/src-tauri/target/release/bundle/ (or src-tauri/target/<triple>/release/bundle/ for cross-compile targets) (dmg/, nsis/, appimage/, or deb/).
  2. Compute sha256sum or shasum -a 256 for each artifact.
  3. On macOS, run hdiutil verify for generated DMG files.
  4. Report the artifact path, SHA-256, app name, app id, and build directory.

Failure Handling

  • Invalid brandId: show the regex and ask for a corrected value.
  • Missing logo: ask for a valid local path.
  • Missing bundled script: report that packages/desktop/.agents/skills/desktop-brand-builder/scripts/brand-create.mjs is missing, and include the expected command.
  • Already-branded shell-root: the script refuses to run when productName is no longer the default (Qwen Code Desktop). Start from a fresh clone — do not re-run the script in an already-patched tree.
  • Build failure: preserve the build directory, return the last useful error lines, and include the full log path or command that produced the failure.

Do not delete the build directory on failure. Never re-run brand-create in the same clone — the script is single-use. The "preserve the build directory" guidance is for post-mortem debugging, not for retrying the brand step. If the brand config was wrong, discard the clone and start fresh.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Desktop Brand Builder?

Genera un pacchetto desktop Qwen Code con il tuo brand a partire dalla shell desktop Tauri, usando un brandId e un logo minimi. Usalo quando l'utente vuole un client desktop personalizzato, white-label o rebrandizzato, un programma di installazione, un DMG/EXE/AppImage/deb oppure creare con un solo clic una versione personalizzata dei pacchetti in packages/desktop.

Perché usare Desktop Brand Builder su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Desktop Brand Builder è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Desktop Brand Builder in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/QwenLM/qwen-code/tree/main/packages/desktop/.agents/skills/desktop-brand-builder. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Desktop Brand Builder?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Desktop Brand Builder?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Desktop Brand Builder: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Desktop Brand Builder è gratuita?

Sì. È pubblicata su GitHub da QwenLM con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇