Skip to content

Commit

Permalink
Changed updater trying to read version from userData
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardKanshen committed Mar 8, 2024
1 parent b21f443 commit 2720e99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ app.on('window-all-closed', function () {


var version, clientID = "1211721853324890143", rpc = null, startTime = new Date();
fs.readFile(path.join(app.getPath('userData'), 'package.json'), 'utf8', (err, data) => {
fs.readFile(path.join(__dirname, 'package.json'), 'utf8', (err, data) => {
if (err) {
console.error(err);
return;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deadforge",
"version": "v1.2.2",
"version": "v1.2.2PatchA",
"description": "An Electron Launcher for DeadCode Projects.",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 2720e99

Please sign in to comment.