Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
fix(console): derive the canary builder config from the stable one (#596)
Louis Amaudruz3581486f3598
diff --git a/console/apps/switch-console-desktop/electron-builder.canary.config.ts b/console/apps/switch-console-desktop/electron-builder.canary.config.tsindex eeeea54fd..65cd5e318 100644--- a/console/apps/switch-console-desktop/electron-builder.canary.config.ts+++ b/console/apps/switch-console-desktop/electron-builder.canary.config.ts@@ -1,4 +1,5 @@import type { Configuration } from 'electron-builder';+import stable from './electron-builder.config.ts';import {APP_ID,APP_NAME_LOWER,@@ -8,24 +9,19 @@ import {RELEASE_REPO_OWNER,} from './src/shared/app-identity.canary.ts';+// Canary is the stable build with a different identity, icon and update channel.+// Everything else — bundled resources, signing, notarization, per-arch targets —+// is inherited, so a packaging change made to the stable config reaches canary+// without anyone having to remember it. Override only what must differ.const config: Configuration = {+ ...stable,appId: APP_ID,productName: PRODUCT_NAME,executableName: PRODUCT_NAME,- // Canary-specific desktop entry name so it never collides with the stable- // channel's (see the base config for what desktopName does).extraMetadata: {+ ...stable.extraMetadata,desktopName: `${APP_NAME_LOWER}.desktop`,},- // Claim the switchdash:// scheme so the OS routes deeplinks to the app (see- // the base config for details).- protocols: [- {- name: 'Switch Console deeplink',- schemes: ['switchdash'],- },- ],- directories: { output: 'release' },artifactName: `${ARTIFACT_PREFIX}-\${arch}.\${ext}`,publish: [{@@ -40,73 +36,29 @@ const config: Configuration = {channel: 'canary',},],- generateUpdatesFilesForAllChannels: false,- files: ['out/**/*', 'node_modules/**/*', 'drizzle/**/*'],- asarUnpack: ['node_modules/better-sqlite3/**', 'node_modules/@parcel/watcher/**', '**/*.node'],mac: {- category: 'public.app-category.developer-tools',- hardenedRuntime: true,- entitlements: 'build/entitlements.mac.plist',- entitlementsInherit: 'build/entitlements.mac.plist',- target: [- { target: 'dmg', arch: ['arm64'] },- { target: 'zip', arch: ['arm64'] },- ],+ ...stable.mac,icon: 'src/assets/images/switch-console/switch-console-canary.icns',- notarize: false,},dmg: {+ ...stable.dmg,icon: 'src/assets/images/switch-console/switch-console-canary.icns',- window: { width: 530, height: 319 },- contents: [- { x: 132, y: 150, type: 'file' },- { x: 398, y: 150, type: 'link', path: '/Applications' },- ],},linux: {- category: 'Development',+ ...stable.linux,executableName: APP_NAME_LOWER,- // Same fpm requirement as the stable channel — deb/rpm cannot package- // without it.- maintainer: 'Louis Amaudruz <[email protected]>',- syncDesktopName: true,- // Arch comes from the CLI flag / host — see the base config for why naming- // both arches here produces a broken package.- target: ['AppImage', 'deb', 'rpm'],},deb: {+ ...stable.deb,packageName: APP_NAME_LOWER,},rpm: {+ ...stable.rpm,packageName: APP_NAME_LOWER,},- // Always unsigned: no workflow builds this channel, so the Azure OIDC login the- // stable config's signing depends on never runs here. Adding `azureSignOptions`- // without that login breaks the build outright rather than leaving it unsigned —- // see the `hasAzureSigning` comment in the base config.win: {+ ...stable.win,icon: 'src/assets/images/switch-console/app-icon-canary.png',- target: [- { target: 'nsis', arch: ['x64'] },- { target: 'msi', arch: ['x64'] },- ],- },- msi: {- oneClick: false,- perMachine: false,- },- nsis: {- differentialPackage: true,- oneClick: false,- allowToChangeInstallationDirectory: true,- perMachine: false,- },- npmRebuild: false,- // Encrypt Chromium's on-disk cookie store (in-app browser logins) with OS-level- // keys, like Chrome does. One-way: never disable once shipped or existing- // cookie stores become unreadable.- electronFuses: {- enableCookieEncryption: true,},};