fork updater channel should point to fork

This commit is contained in:
ethernet 2026-08-14 02:04:08 -04:00
parent 0d0e9fe5c9
commit 5af265c937
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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
}
],