Compare commits
2 Commits
c741503665
...
4c88c0a756
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c88c0a756 | ||
|
|
2208632154 |
20
main.js
20
main.js
@ -212,10 +212,22 @@ function normalizeApiError(payload, fallback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getDefaultLogFilePath() {
|
function getDefaultLogFilePath() {
|
||||||
const baseDir = app.isPackaged
|
// In packaged builds the exe dir is %LOCALAPPDATA%\Programs\Multi-Hoster-Upload
|
||||||
? path.dirname(process.execPath)
|
// — a hidden, install-managed location that NSIS may even prune on
|
||||||
: path.join(__dirname);
|
// uninstall. Default to the user's Desktop so the file is actually
|
||||||
return path.join(baseDir, 'fileuploader.log');
|
// findable; fall back to userData if Desktop isn't available, and
|
||||||
|
// 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() {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "multi-hoster-uploader",
|
"name": "multi-hoster-uploader",
|
||||||
"version": "3.3.19",
|
"version": "3.3.20",
|
||||||
"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": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user