Skip to content

Commit

Permalink
fix win32 paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mp3butcher committed Feb 7, 2025
1 parent afba489 commit 5608546
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions modules/Filepaths.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ class Filepaths {
this.setPermissions()
break;
}
this.baseappdir = this.app.isPackaged ? path.dirname(this.packedPrefix) : this.appPath;

await this.removeLeftOver();
}

Expand Down
2 changes: 1 addition & 1 deletion modules/types/Query.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class Query {
outputs.forEach((e) => {
let curargs2 = [...args2];
curargs2.push(path.join(video.downloadedPath, e), path.join(video.downloadedPath, 'dec' + e));
this.process = execa.sync(path.join('resources', 'mp4decrypt' + (process.platform === "win32" ? '.exe' : '')), curargs2);
this.process = execa.sync(path.join(path.join(this.environment.paths.baseappdir, 'resources'), 'mp4decrypt' + (process.platform === "win32" ? '.exe' : '')), curargs2);
})
let curargs = [];
outputs.forEach((e) => {
Expand Down

0 comments on commit 5608546

Please sign in to comment.