Skip to content

Commit 5e3355e

Browse files
committed
انشاء ملف منفصل للاصدار
لتجنب مشاكل file override
1 parent 5999e0a commit 5e3355e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Window/home.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,6 @@ module.exports = async function homeWindow(BrowserWindow, ipcMain, app, Tray, Me
154154
tray?.destroy();
155155
});
156156

157-
fs.writeJsonSync(path.join(App_Path, './data/settings.json'), { currentRelease: app.getVersion() }, { spaces: '\t' });
157+
fs.writeJsonSync(path.join(App_Path, './data/version.json'), { currentRelease: app.getVersion() }, { spaces: '\t' });
158158

159159
}

preload/preload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ window.addEventListener('DOMContentLoaded', async (e) => {
2323
e.preventDefault();
2424

2525
let App_Path = await ipcRenderer.invoke('App_Path');
26-
let currentRelease = fs.readJsonSync(path.join(App_Path, './data/settings.json')).currentRelease || "0.0.0";
26+
let currentRelease = fs.readJsonSync(path.join(App_Path, './data/version.json')).currentRelease || "0.0.0";
2727

2828
barWindow();
2929
home(App_Path);

0 commit comments

Comments
 (0)