build: Fix duplication

pull/533/head
Elian Doran 2024-10-26 01:00:44 +07:00
parent e3e6f56a88
commit 88cd2ac25c
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

@ -25,12 +25,12 @@ module.exports = {
if (platform === 'darwin') {
sourcePath = path.join(buildPath, `${APP_NAME}.app`, 'Contents', 'Resources', baseName);
} else {
sourcePath = path.join(buildPath, 'resources', path.basename(resource));
sourcePath = path.join(buildPath, 'resources', baseName);
}
let destPath;
if (baseName !== "256x256.png") {
destPath = path.join(buildPath, path.basename(resource));
destPath = path.join(buildPath, baseName);
} else {
destPath = path.join(buildPath, "icon.png");
}