From 5af265c937efd396972713fa87fcee343fa3bc70 Mon Sep 17 00:00:00 2001 From: ethernet Date: Fri, 14 Aug 2026 02:04:08 -0400 Subject: [PATCH] fork updater channel should point to fork --- .github/workflows/desktop-bundled-release.yml | 3 +++ apps/desktop/electron-builder.config.cjs | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/desktop-bundled-release.yml b/.github/workflows/desktop-bundled-release.yml index 776525979b9f4..161d9ad77246d 100644 --- a/.github/workflows/desktop-bundled-release.yml +++ b/.github/workflows/desktop-bundled-release.yml @@ -344,6 +344,9 @@ jobs: # requires a list.) AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }} AZURE_TOKEN_CREDENTIALS: prod + + # so fork-built bundles can continue updating from their forks + GITHUB_REPOSITORY: ${{ env.GITHUB_REPOSITORY }} run: | # Windows signing turns on inside run-electron-builder.mjs when the # AZURE_SIGN_* variables above are present. It cannot ride through diff --git a/apps/desktop/electron-builder.config.cjs b/apps/desktop/electron-builder.config.cjs index 6e54062814e30..b0becfd4a08ec 100644 --- a/apps/desktop/electron-builder.config.cjs +++ b/apps/desktop/electron-builder.config.cjs @@ -34,9 +34,14 @@ const { protocolScheme, msixAppIdWithOrg } = require('./product-identity.cjs') +const { default: process } = require('node:process') /** @typedef {import("app-builder-lib").Configuration} Configuration */ +const [owner, repo] = (process.env.GITHUB_REPOSITORY || 'NousResearch/hermes-agent').split('/') +if (!owner || !repo) { + throw new Error(`invalid GITHUB_REPOSITORY ${process.env.GITHUB_REPOSITORY}`) +} const electronVersion = require('./package.json').devDependencies.electron if (!electronVersion.matches(/^\d+\.\d+\.\d+$/)) { throw new Error(`invalid electron version ${electronVersion} in package.json`) @@ -59,8 +64,8 @@ module.exports = { publish: [ { provider: 'github', - owner: 'NousResearch', - repo: 'hermes-agent', + owner, + repo, channel } ],