A desktop coding agent with free access to frontier models.
TypeScript
feat: lowercase app name
ogsamratd8c3dca3fee5
diff --git a/apps/desktop/electron-builder.yml b/apps/desktop/electron-builder.ymlindex cfe63a6e..ac1780e8 100644--- a/apps/desktop/electron-builder.yml+++ b/apps/desktop/electron-builder.yml@@ -1,13 +1,36 @@extends: ./electron-builder.base.ymlappId: ai.omnirush.desktop-productName: OmniRush.ai+productName: omnirush.aiprotocols:- name: OmniRush.aischemes:- omnirushlinux:executableName: omnirush+# Package names stay as published before the lowercase product name, so+# package managers upgrade the installed package instead of adding a second one.+deb:+ packageName: omnirush.ai+rpm:+ packageName: OmniRush.aipacman:# The AUR package's name, so the two replace each other cleanly.packageName: omnirush+# Installer window: background from scripts/dmg-background.swift (the @2x file+# is picked up next to it), laid out to match that script.+dmg:+ title: ${productName}+ background: build/dmg-background.png+ iconSize: 128+ window:+ width: 660+ height: 400+ contents:+ - x: 170+ y: 190+ type: file+ - x: 490+ y: 190+ type: link+ path: /ApplicationsartifactName: omnirush-${os}-${arch}-${version}.${ext}diff --git a/apps/desktop/electron/electron-builder-config.test.mjs b/apps/desktop/electron/electron-builder-config.test.mjsindex dfebf888..70285053 100644--- a/apps/desktop/electron/electron-builder-config.test.mjs+++ b/apps/desktop/electron/electron-builder-config.test.mjs@@ -52,9 +52,31 @@ describe("Electron distribution configs", () => {const config = await readConfig("electron-builder.yml");assert.equal(config.extends, "./electron-builder.base.yml");assert.equal(config.appId, "ai.omnirush.desktop");- assert.equal(config.productName, "OmniRush.ai");+ assert.equal(config.productName, "omnirush.ai");assert.equal(config.protocols[0].schemes[0], "omnirush");assert.equal(config.artifactName, "omnirush-${os}-${arch}-${version}.${ext}");+ // Published package names, so upgrades replace the installed package.+ assert.equal(config.deb.packageName, "omnirush.ai");+ assert.equal(config.rpm.packageName, "OmniRush.ai");+ assert.equal(config.pacman.packageName, "omnirush");+ });++ it("lays out the macOS installer window on a Retina-ready background", async () => {+ const { dmg } = await readConfig("electron-builder.yml");+ const size = async (file) => {+ const png = await readFile(path.resolve(dirname, "..", file));+ return [png.readUInt32BE(16), png.readUInt32BE(20)];+ };+ assert.deepEqual(await size(dmg.background), [dmg.window.width, dmg.window.height]);+ assert.deepEqual(+ await size(dmg.background.replace(/\.png$/, "@2x.png")),+ [dmg.window.width * 2, dmg.window.height * 2],+ );+ assert.deepEqual(+ dmg.contents.map(({ type, path: target }) => [type, target]),+ [["file", undefined], ["link", "/Applications"]],+ );+ assert.ok(dmg.contents[0].x < dmg.contents[1].x);});it("defines an enterprise flavor with the standard app identity and release provider", async () => {