Skip to content

Commit

Permalink
disable asar packing and bump to 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanamr committed May 7, 2023
1 parent cbc6c7b commit 6a1d7ed
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .electron-builder.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "arenareturnslauncher",
"description": "Le launcher officiel d'Arena Returns",
"version": "2.0.1",
"version": "2.0.2",
"author": {
"email": "[email protected]",
"name": "Arena Returns",
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
18 changes: 8 additions & 10 deletions packages/main/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));

0 comments on commit 6a1d7ed

Please sign in to comment.