From ffb73107e6ab73174ce4c82b04dd653fa1281e61 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 19 Jul 2024 01:21:11 +0200 Subject: [PATCH] flatpak explosion --- src/main/updater/http.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/updater/http.ts b/src/main/updater/http.ts index 01dd33592..f42e9f3c1 100644 --- a/src/main/updater/http.ts +++ b/src/main/updater/http.ts @@ -90,6 +90,9 @@ ipcMain.handle(IpcEvents.BUILD, serializeErrors(applyUpdates)); export async function migrateLegacyToAsar() { try { + const isFlatpak = process.platform === "linux" && !!process.env.FLATPAK_ID; + if (isFlatpak) throw "Flatpak Discord can't automatically be migrated."; + const data = await get(`https://github.com/${gitRemote}/releases/latest/download/desktop.asar`); originalWriteFileSync(join(__dirname, "../vencord.asar"), data);