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>
|
<h1><u>Subsonics 2.1.6</u></h1>
|
||||||
<p>Sortie le : 01/05/2022</p>
|
<p>Sortie le : 01/05/2022</p>
|
||||||
<h2 style="font-size: 18px;">Ajouts & Fixes :</h2>
|
<h2 style="font-size: 18px;">Ajouts & Fixes :</h2>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><strong>[FIX]</strong> : Logs : Logs go on wrong folder/li>
|
<li><strong>[FIX]</strong> : Logs : Logs goes on wrong folder</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<hr>
|
<hr>
|
||||||
|
9
main.js
9
main.js
@ -175,7 +175,14 @@ async function createWindow() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
socket.on("successLogin", (token) => {
|
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
|
settings["token"] = token
|
||||||
|
|
||||||
fs.writeFile(__dirname + path.sep + "settings.json", JSON.stringify(settings, null, 2), (err) => {
|
fs.writeFile(__dirname + path.sep + "settings.json", JSON.stringify(settings, null, 2), (err) => {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "subsonics-manager",
|
"name": "subsonics-manager",
|
||||||
"version": "2.1.6",
|
"version": "2.1.7",
|
||||||
"description": "Manager for subsonics",
|
"description": "Manager for subsonics",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
14
sub-log.js
14
sub-log.js
@ -1,13 +1,14 @@
|
|||||||
const fs = require("fs")
|
const fs = require("fs")
|
||||||
|
const path = require("path")
|
||||||
|
const { app } = require("electron")
|
||||||
|
|
||||||
|
if(!fs.existsSync(__dirname + path.sep + "logs" + path.sep)) {
|
||||||
if(!fs.existsSync(__dirname + "logs/")) {
|
fs.mkdirSync(__dirname + path.sep + "logs")
|
||||||
fs.mkdirSync(__dirname + "logs/")
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var logStream = fs.createWriteStream(__dirname + "logs/" + getDate() + ".log", {
|
var logStream = fs.createWriteStream(__dirname + path.sep + "logs" + path.sep + getDate() + ".log", {
|
||||||
flags: 'a'
|
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.end( "["+ "NORMAL_END" + "]" + " - [END OF LOGS] - [" + getDate() + ']')
|
||||||
logStream.close()
|
logStream.close()
|
||||||
});
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user