Skip to content

Commit 1c5547d

Browse files
committed
Fixed issue resolving app version number in release builds.
1 parent d31d5ba commit 1c5547d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/electron.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ class ElectronLoader {
5555

5656
static /** @type {string} */ STEAM_DEFAULT_COMPAT_DATA_ROOT = "~/.local/share/Steam/steamapps/compatdata";
5757
static /** @type {string} */ STEAM_COMPAT_STEAMUSER_DIR = "pfx/drive_c/users/steamuser";
58-
static /** @type {string} */ APP_PACKAGE_FILE = "package.json";
5958
static /** @type {string} */ APP_SETTINGS_FILE = "settings.json";
6059
static /** @type {string} */ APP_PROFILES_DIR = "profiles";
60+
static /** @type {string} */ APP_PACKAGE_FILE = path.join(__dirname, "package.json");
6161
static /** @type {string} */ APP_DEPS_LICENSES_FILE = path.join(__dirname, "3rdpartylicenses.txt");
6262
static /** @type {string} */ APP_DEPS_INFO_FILE = path.join(__dirname, "3rdpartylicenses.json");
6363
static /** @type {string} */ GAME_DB_FILE = path.join(__dirname, "game-db.json");
@@ -78,7 +78,7 @@ class ElectronLoader {
7878
const appPackage = fs.readJSONSync(ElectronLoader.APP_PACKAGE_FILE, { encoding: "utf-8" });
7979
return `v${appPackage.version}`;
8080
} catch (err) {
81-
return "main";
81+
return "master";
8282
}
8383
})();
8484

0 commit comments

Comments
 (0)