mirror of
https://github.com/jely2002/youtube-dl-gui.git
synced 2021-11-01 22:46:21 +03:00
fix: files not being copied correctly because of a wrong path (#153)
This commit is contained in:
@@ -112,7 +112,7 @@ class Filepaths {
|
||||
}
|
||||
|
||||
async createAppDataFolder() {
|
||||
const from = path.join(this.unpackedPrefix + "binaries");
|
||||
const from = path.join(this.unpackedPrefix, "binaries");
|
||||
const toCopy = ["youtube-dl.exe", "ffmpeg.exe", "ytdlVersion", "AtomicParsley.exe"];
|
||||
await this.copyFiles(from, this.persistentPath, toCopy);
|
||||
}
|
||||
@@ -121,7 +121,7 @@ class Filepaths {
|
||||
try {
|
||||
await fs.promises.access(process.env.PORTABLE_EXECUTABLE_DIR, fs.constants.W_OK);
|
||||
if(await this.migrateExistingAppDataFolder()) return;
|
||||
const from = path.join(this.unpackedPrefix + "binaries");
|
||||
const from = path.join(this.unpackedPrefix, "binaries");
|
||||
const toCopy = ["youtube-dl.exe", "ffmpeg.exe", "ytdlVersion", "AtomicParsley.exe"];
|
||||
await this.copyFiles(from, this.persistentPath, toCopy);
|
||||
} catch (e) {
|
||||
@@ -149,7 +149,7 @@ class Filepaths {
|
||||
}
|
||||
|
||||
async createHomeFolder() {
|
||||
const from = path.join(this.unpackedPrefix + "binaries");
|
||||
const from = path.join(this.unpackedPrefix, "binaries");
|
||||
const toCopy = ["youtube-dl-unix", "ffmpeg-linux", "ytdlVersion"];
|
||||
await this.copyFiles(from, this.persistentPath, toCopy);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user