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:
parent
04e8e5b07f
commit
a05f3a0163
1 changed files with 3 additions and 4 deletions
|
|
@ -12,8 +12,7 @@ try {
|
||||||
}
|
}
|
||||||
|
|
||||||
const HUB_URL = process.env.GAMING_HUB_URL || 'https://hub.daddelolymp.de';
|
const HUB_URL = process.env.GAMING_HUB_URL || 'https://hub.daddelolymp.de';
|
||||||
// Separate URL for auto-updates (no Pangolin auth, publicly accessible)
|
// Auto-Updates laufen über HUB_URL — /downloads ist per Pangolin-Rule ohne Auth erreichbar
|
||||||
const UPDATE_URL = process.env.GAMING_HUB_UPDATE_URL || 'https://updates.daddelolymp.de';
|
|
||||||
const APP_VERSION = app.getVersion();
|
const APP_VERSION = app.getVersion();
|
||||||
|
|
||||||
// Sync IPC: preload reads app version from package.json
|
// Sync IPC: preload reads app version from package.json
|
||||||
|
|
@ -25,8 +24,8 @@ function setupAutoUpdater() {
|
||||||
if (process.platform !== 'win32') return;
|
if (process.platform !== 'win32') return;
|
||||||
|
|
||||||
// Squirrel.Windows appends /RELEASES to the feed URL.
|
// Squirrel.Windows appends /RELEASES to the feed URL.
|
||||||
// Uses separate subdomain without Pangolin auth (Squirrel has no browser session).
|
// /downloads ist per Pangolin-Rule ohne Auth erreichbar (Squirrel hat keine Browser-Session).
|
||||||
const updateURL = `${UPDATE_URL}/downloads`;
|
const updateURL = `${HUB_URL}/downloads`;
|
||||||
try {
|
try {
|
||||||
autoUpdater.setFeedURL({ url: updateURL });
|
autoUpdater.setFeedURL({ url: updateURL });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue