Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Fix asar path (fixes #318)
Browse files Browse the repository at this point in the history
  • Loading branch information
brrd committed May 24, 2022
1 parent 702d389 commit d3ae18e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ var app = require("electron").app,
appPath = app.getAppPath(),
documentsPath = app.getPath("documents"),
userDataPath = pathModule.join(app.getPath("userData"), "/app"),
tmpPath = pathModule.join(app.getPath("temp"), "/Abricotine"),
isAsar = appPath.match(/\.asar$/) !== null;
tmpPath = pathModule.join(app.getPath("temp"), "/Abricotine");

module.exports = {
appName: "Abricotine",
Expand All @@ -21,7 +20,7 @@ module.exports = {
path: {
app: appPath,
icon: pathModule.join(appPath, "/icons/abricotine.png"),
defaultDir: isAsar ? appPath + ".unpacked/default" : appPath + "/default",
defaultDir: appPath + "/default",
dictionaries: pathModule.join(userDataPath, "/dictionaries"),
documents: documentsPath,
languages: pathModule.join(userDataPath, "/lang"),
Expand Down

0 comments on commit d3ae18e

Please sign in to comment.