diff --git a/electron-builder.yml b/electron-builder.yml index 4f778e3b..2e4e5c2a 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -24,6 +24,7 @@ nsis: uninstallDisplayName: ${productName} createDesktopShortcut: always oneClick: false + allowToChangeInstallationDirectory: true mac: entitlementsInherit: build/entitlements.mac.plist extendInfo: diff --git a/src/main/main.ts b/src/main/main.ts index 185fdfe7..ea4e7dd9 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -6,6 +6,7 @@ import { import { UserPreferences } from "./entity"; import { RealDebridClient } from "./services/real-debrid"; import { fetchDownloadSourcesAndUpdate } from "./helpers"; +import { publishNewRepacksNotifications } from "./services/notifications"; startMainLoop(); @@ -29,7 +30,9 @@ const loadState = async (userPreferences: UserPreferences | null) => { if (nextQueueItem?.game.status === "active") DownloadManager.startDownload(nextQueueItem.game); - fetchDownloadSourcesAndUpdate(); + fetchDownloadSourcesAndUpdate().then(() => { + publishNewRepacksNotifications(300); + }); }; userPreferencesRepository