remove/disable console logs
This commit is contained in:
parent
5c87704b10
commit
a0628cc873
2
app.js
2
app.js
|
@ -33,7 +33,6 @@ const run = () => {
|
||||||
const result = await osuUtil.startOsuWithDevServer(tempOsuPath, "ez-pp.farm", async () => {
|
const result = await osuUtil.startOsuWithDevServer(tempOsuPath, "ez-pp.farm", async () => {
|
||||||
await doUpdateCheck(mainWindow);
|
await doUpdateCheck(mainWindow);
|
||||||
});
|
});
|
||||||
console.log(result);
|
|
||||||
return result;
|
return result;
|
||||||
})
|
})
|
||||||
ipcMain.on('do-update-check', async () => {
|
ipcMain.on('do-update-check', async () => {
|
||||||
|
@ -111,7 +110,6 @@ async function doUpdateCheck(window) {
|
||||||
|
|
||||||
const releaseFiles = await osuUtil.getUpdateFiles(releaseStream);
|
const releaseFiles = await osuUtil.getUpdateFiles(releaseStream);
|
||||||
const filesToDownload = await osuUtil.filesThatNeedUpdate(tempOsuPath, releaseFiles);
|
const filesToDownload = await osuUtil.filesThatNeedUpdate(tempOsuPath, releaseFiles);
|
||||||
console.log("sending update check " + (filesToDownload.length > 0 ? "update-available" : "up-to-date"))
|
|
||||||
window.webContents.send('status_update', {
|
window.webContents.send('status_update', {
|
||||||
type: filesToDownload.length > 0 ? "update-available" : "up-to-date"
|
type: filesToDownload.length > 0 ? "update-available" : "up-to-date"
|
||||||
})
|
})
|
||||||
|
|
|
@ -26,7 +26,6 @@ async function get(key, defaultValue) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function set(key, value) {
|
async function set(key, value) {
|
||||||
console.log("setting " + key + " to " + value);
|
|
||||||
const configValues = new Map();
|
const configValues = new Map();
|
||||||
const fileStream = await fs.promises.readFile(configLocation, "utf-8");
|
const fileStream = await fs.promises.readFile(configLocation, "utf-8");
|
||||||
const lines = fileStream.split(/\r?\n/)
|
const lines = fileStream.split(/\r?\n/)
|
||||||
|
|
|
@ -103,14 +103,14 @@ async function filesThatNeedUpdate(osuPath, updateFiles) {
|
||||||
fileName,
|
fileName,
|
||||||
fileURL
|
fileURL
|
||||||
})
|
})
|
||||||
console.log("hashes are not matching", `(${existingFileMD5} - ${fileHash})`);
|
// console.log("hashes are not matching", `(${existingFileMD5} - ${fileHash})`);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
filesToDownload.push({
|
filesToDownload.push({
|
||||||
fileName,
|
fileName,
|
||||||
fileURL
|
fileURL
|
||||||
});
|
});
|
||||||
console.log("new file " + fileName);
|
// console.log("new file " + fileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return filesToDownload;
|
return filesToDownload;
|
||||||
|
@ -142,7 +142,6 @@ async function downloadUpdateFiles(osuPath, filesToUpdate) {
|
||||||
|
|
||||||
async function startWithDevServer(osuPath, serverDomain, onExit) {
|
async function startWithDevServer(osuPath, serverDomain, onExit) {
|
||||||
const osuExe = path.join(osuPath, "osu!.exe");
|
const osuExe = path.join(osuPath, "osu!.exe");
|
||||||
console.log(osuExe);
|
|
||||||
if (!await fu.existsAsync(osuExe)) return false;
|
if (!await fu.existsAsync(osuExe)) return false;
|
||||||
executeUtil.runFile(osuPath, osuExe, ["-devserver", serverDomain], onExit);
|
executeUtil.runFile(osuPath, osuExe, ["-devserver", serverDomain], onExit);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user