import { resolveChannel } from "./utils" const arg = process.argv[2] const channel = arg === "dev" || arg === "beta" || arg === "prod" ? arg : resolveChannel() const appId = channel === "prod" ? "ai.opencode.desktop" : `ai.opencode.desktop.${channel}` const productName = channel === "prod" ? "OpenCode" : `OpenCode ${channel.charAt(0).toUpperCase() + channel.slice(1)}` const summary = `Open source AI coding agent${channel !== "prod" ? ` (${channel})` : ""}` const xml = ` ${appId} CC0-1.0 MIT ${productName} ${summary} Anomaly Innovations Inc.

OpenCode is an open source agent that helps you write and run code with any AI model.

${appId}.desktop https://github.com/anomalyco/opencode/issues https://opencode.ai https://github.com/anomalyco/opencode https://raw.githubusercontent.com/anomalyco/opencode/b75d4d1c5ec449585d515c756fc81f080a157a9a/packages/web/src/assets/lander/screenshot.png
` await Bun.write(`resources/${appId}.metainfo.xml`, xml) console.log(`Generated metainfo for ${channel} at resources/${appId}.metainfo.xml`)