diff --git a/.electron-builder.config.js b/.electron-builder.config.js index 9ab2160..87d3d5e 100644 --- a/.electron-builder.config.js +++ b/.electron-builder.config.js @@ -16,7 +16,7 @@ module.exports = async function () { productName: "Arena Returns Launcher", copyright: "Copyright © 2023 Arena Returns", compression: "maximum", - asar: true, + asar: false, directories: { output: "dist", buildResources: "buildResources", diff --git a/package.json b/package.json index 8600158..06af0a3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "arenareturnslauncher", "description": "Le launcher officiel d'Arena Returns", - "version": "2.0.1", + "version": "2.0.2", "author": { "email": "contact@arena-returns.com", "name": "Arena Returns", diff --git a/packages/main/src/constants.ts b/packages/main/src/constants.ts index a7ce41d..dbed3c1 100644 --- a/packages/main/src/constants.ts +++ b/packages/main/src/constants.ts @@ -2,7 +2,7 @@ import { app } from "electron"; import * as path from "path"; export class Constants { - public static readonly CURRENT_LAUNCHER_VERSION = "2.0.1"; + public static readonly CURRENT_LAUNCHER_VERSION = "2.0.2"; public static readonly CDN_URL = "https://launcher.arena-returns.com"; public static readonly GAME_PATH = path.join(app.getPath("appData"), "Arena Returns Client"); } diff --git a/packages/main/src/index.ts b/packages/main/src/index.ts index c9d0b18..d23568e 100644 --- a/packages/main/src/index.ts +++ b/packages/main/src/index.ts @@ -51,13 +51,11 @@ app * if you compile production app without publishing it to distribution server. * Like `yarn compile` does. It's ok 😅 */ -if (import.meta.env.PROD) { - app - .whenReady() - .then(() => import("electron-updater")) - .then(module => { - const autoUpdater = module.autoUpdater || (module.default.autoUpdater as (typeof module)["autoUpdater"]); - return autoUpdater.checkForUpdatesAndNotify(); - }) - .catch(e => console.error("Failed check and install updates:", e)); -} +app + .whenReady() + .then(() => import("electron-updater")) + .then(module => { + const autoUpdater = module.autoUpdater || (module.default.autoUpdater as (typeof module)["autoUpdater"]); + return autoUpdater.checkForUpdatesAndNotify(); + }) + .catch(e => console.error("Failed check and install updates:", e));