2.1.7 Offical Version
This commit is contained in:
parent
1bb292d1c2
commit
634a6e2b7b
@ -1,9 +1,19 @@
|
||||
<h1><u>Subsonics 2.1.7</u></h1>
|
||||
<p>Sortie le : 01/05/2022</p>
|
||||
<h2 style="font-size: 18px;">Ajouts & Fixes :</h2>
|
||||
<ul>
|
||||
|
||||
<li><strong>[FIX]</strong> : Settings : Favoris won't be deleted on new connection</li>
|
||||
<li><strong>[FIX]</strong> : Logs : Logs goes on wrong folder</li>
|
||||
</ul>
|
||||
<hr>
|
||||
|
||||
<h1><u>Subsonics 2.1.6</u></h1>
|
||||
<p>Sortie le : 01/05/2022</p>
|
||||
<h2 style="font-size: 18px;">Ajouts & Fixes :</h2>
|
||||
<ul>
|
||||
|
||||
<li><strong>[FIX]</strong> : Logs : Logs go on wrong folder/li>
|
||||
<li><strong>[FIX]</strong> : Logs : Logs goes on wrong folder</li>
|
||||
|
||||
</ul>
|
||||
<hr>
|
||||
|
9
main.js
9
main.js
@ -175,7 +175,14 @@ async function createWindow() {
|
||||
})
|
||||
|
||||
socket.on("successLogin", (token) => {
|
||||
const settings = {}
|
||||
|
||||
if(!fs.existsSync(__dirname + path.sep + "settings.json")) {
|
||||
|
||||
fs.writeFileSync(__dirname + path.sep + "settings.json")
|
||||
}
|
||||
|
||||
const settings = require(__dirname + path.sep + "settings.json")
|
||||
|
||||
settings["token"] = token
|
||||
|
||||
fs.writeFile(__dirname + path.sep + "settings.json", JSON.stringify(settings, null, 2), (err) => {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "subsonics-manager",
|
||||
"version": "2.1.6",
|
||||
"version": "2.1.7",
|
||||
"description": "Manager for subsonics",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
14
sub-log.js
14
sub-log.js
@ -1,13 +1,14 @@
|
||||
const fs = require("fs")
|
||||
const path = require("path")
|
||||
const { app } = require("electron")
|
||||
|
||||
|
||||
if(!fs.existsSync(__dirname + "logs/")) {
|
||||
fs.mkdirSync(__dirname + "logs/")
|
||||
if(!fs.existsSync(__dirname + path.sep + "logs" + path.sep)) {
|
||||
fs.mkdirSync(__dirname + path.sep + "logs")
|
||||
|
||||
}
|
||||
|
||||
|
||||
var logStream = fs.createWriteStream(__dirname + "logs/" + getDate() + ".log", {
|
||||
var logStream = fs.createWriteStream(__dirname + path.sep + "logs" + path.sep + getDate() + ".log", {
|
||||
flags: 'a'
|
||||
});
|
||||
|
||||
@ -80,7 +81,8 @@ process.on('uncaughtException', (err) => {
|
||||
|
||||
});
|
||||
|
||||
process.on('beforeExit', () => {
|
||||
app.on("before-quit", () => {
|
||||
|
||||
logStream.end( "["+ "NORMAL_END" + "]" + " - [END OF LOGS] - [" + getDate() + ']')
|
||||
logStream.close()
|
||||
});
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user