import { resolveChannel } from "./utils" const arg = process.argv[2] const channel = arg === "dev" || arg === "beta" || arg === "prod" ? arg : resolveChannel() const appId = channel === "prod" ? "org.lambda-scientist.desktop" : `org.lambda-scientist.desktop.${channel}` const productName = channel === "prod" ? "λ-Scientist" : `λ-Scientist ${channel.charAt(0).toUpperCase() + channel.slice(1)}` const summary = `Verifiable autonomous scientific research${channel !== "prod" ? ` (${channel})` : ""}` const xml = ` ${appId} CC0-1.0 MIT ${productName} ${summary} λ-Scientist

λ-Scientist connects research evidence, verifiable execution and collaborative agents.

${appId}.desktop
` await Bun.write(`resources/${appId}.metainfo.xml`, xml) console.log(`Generated metainfo for ${channel} at resources/${appId}.metainfo.xml`)