| 123456789101112131415161718192021222324252627282930313233343536373839 |
- 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 = `<?xml version="1.0" encoding="UTF-8"?>
- <component type="desktop-application">
- <id>${appId}</id>
- <metadata_license>CC0-1.0</metadata_license>
- <project_license>MIT</project_license>
- <name>${productName}</name>
- <summary>${summary}</summary>
- <developer id="org.lambda-scientist">
- <name>λ-Scientist</name>
- </developer>
- <description>
- <p>
- λ-Scientist connects research evidence, verifiable execution and collaborative agents.
- </p>
- </description>
- <launchable type="desktop-id">${appId}.desktop</launchable>
- <content_rating type="oars-1.1" />
- </component>
- `
- await Bun.write(`resources/${appId}.metainfo.xml`, xml)
- console.log(`Generated metainfo for ${channel} at resources/${appId}.metainfo.xml`)
|