chore(maintenance): make GitHub repo configurable for auto-updater and publisher (#6828)

Signed-off-by: Yelsin Sepulveda <yelsinsepulveda@gmail.com>
This commit is contained in:
Yelsin Sepulveda
2026-02-02 16:16:37 -05:00
committed by GitHub
parent 493ae789c4
commit fafda07dd0
3 changed files with 10 additions and 5 deletions
+2 -2
View File
@@ -43,8 +43,8 @@ module.exports = {
name: '@electron-forge/publisher-github',
config: {
repository: {
owner: 'block',
name: 'goose',
owner: process.env.GITHUB_OWNER || 'block',
name: process.env.GITHUB_REPO || 'goose',
},
prerelease: false,
draft: true,
+2 -2
View File
@@ -27,8 +27,8 @@ interface UpdateCheckResult {
}
export class GitHubUpdater {
private readonly owner = 'block';
private readonly repo = 'goose';
private readonly owner = process.env.GITHUB_OWNER || 'block';
private readonly repo = process.env.GITHUB_REPO || 'goose';
private readonly apiUrl = `https://api.github.com/repos/${this.owner}/${this.repo}/releases/latest`;
async checkForUpdates(): Promise<UpdateCheckResult> {
+6 -1
View File
@@ -1,4 +1,9 @@
import { defineConfig } from 'vite';
// https://vitejs.dev/config
export default defineConfig({});
export default defineConfig({
define: {
'process.env.GITHUB_OWNER': JSON.stringify(process.env.GITHUB_OWNER || 'block'),
'process.env.GITHUB_REPO': JSON.stringify(process.env.GITHUB_REPO || 'goose'),
},
});