flatpak explosion
This commit is contained in:
parent
d9c469755b
commit
ffb73107e6
|
@ -90,6 +90,9 @@ ipcMain.handle(IpcEvents.BUILD, serializeErrors(applyUpdates));
|
||||||
|
|
||||||
export async function migrateLegacyToAsar() {
|
export async function migrateLegacyToAsar() {
|
||||||
try {
|
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`);
|
const data = await get(`https://github.com/${gitRemote}/releases/latest/download/desktop.asar`);
|
||||||
|
|
||||||
originalWriteFileSync(join(__dirname, "../vencord.asar"), data);
|
originalWriteFileSync(join(__dirname, "../vencord.asar"), data);
|
||||||
|
|
Loading…
Reference in a new issue