Auto-Updater: Separate Update-URL entfernt

/downloads ist per Pangolin Path-Rule ohne Auth erreichbar,
daher braucht der Auto-Updater keine eigene Subdomain mehr.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Daniel 2026-03-08 16:17:27 +01:00
parent 04e8e5b07f
commit a05f3a0163

View file

@ -12,8 +12,7 @@ try {
}
const HUB_URL = process.env.GAMING_HUB_URL || 'https://hub.daddelolymp.de';
// Separate URL for auto-updates (no Pangolin auth, publicly accessible)
const UPDATE_URL = process.env.GAMING_HUB_UPDATE_URL || 'https://updates.daddelolymp.de';
// Auto-Updates laufen über HUB_URL — /downloads ist per Pangolin-Rule ohne Auth erreichbar
const APP_VERSION = app.getVersion();
// Sync IPC: preload reads app version from package.json
@ -25,8 +24,8 @@ function setupAutoUpdater() {
if (process.platform !== 'win32') return;
// Squirrel.Windows appends /RELEASES to the feed URL.
// Uses separate subdomain without Pangolin auth (Squirrel has no browser session).
const updateURL = `${UPDATE_URL}/downloads`;
// /downloads ist per Pangolin-Rule ohne Auth erreichbar (Squirrel hat keine Browser-Session).
const updateURL = `${HUB_URL}/downloads`;
try {
autoUpdater.setFeedURL({ url: updateURL });
} catch (e) {