Compare commits

..

No commits in common. "4c88c0a7567646218195671fa59789318d4b9d6d" and "c7415036659f122083371368ae1737c490c31da4" have entirely different histories.

2 changed files with 5 additions and 17 deletions

20
main.js
View File

@ -212,22 +212,10 @@ function normalizeApiError(payload, fallback) {
} }
function getDefaultLogFilePath() { function getDefaultLogFilePath() {
// In packaged builds the exe dir is %LOCALAPPDATA%\Programs\Multi-Hoster-Upload const baseDir = app.isPackaged
// — a hidden, install-managed location that NSIS may even prune on ? path.dirname(process.execPath)
// uninstall. Default to the user's Desktop so the file is actually : path.join(__dirname);
// findable; fall back to userData if Desktop isn't available, and return path.join(baseDir, 'fileuploader.log');
// finally to the project dir in dev mode.
if (app.isPackaged) {
try {
const desktop = app.getPath('desktop');
if (desktop) return path.join(desktop, 'fileuploader.log');
} catch {}
try {
return path.join(app.getPath('userData'), 'fileuploader.log');
} catch {}
return path.join(path.dirname(process.execPath), 'fileuploader.log');
}
return path.join(__dirname, 'fileuploader.log');
} }
function getBaseLogFilePath() { function getBaseLogFilePath() {

View File

@ -1,6 +1,6 @@
{ {
"name": "multi-hoster-uploader", "name": "multi-hoster-uploader",
"version": "3.3.20", "version": "3.3.19",
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously", "description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {