mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
build: Fix duplication
This commit is contained in:
parent
e3e6f56a88
commit
88cd2ac25c
@ -25,12 +25,12 @@ module.exports = {
|
|||||||
if (platform === 'darwin') {
|
if (platform === 'darwin') {
|
||||||
sourcePath = path.join(buildPath, `${APP_NAME}.app`, 'Contents', 'Resources', baseName);
|
sourcePath = path.join(buildPath, `${APP_NAME}.app`, 'Contents', 'Resources', baseName);
|
||||||
} else {
|
} else {
|
||||||
sourcePath = path.join(buildPath, 'resources', path.basename(resource));
|
sourcePath = path.join(buildPath, 'resources', baseName);
|
||||||
}
|
}
|
||||||
let destPath;
|
let destPath;
|
||||||
|
|
||||||
if (baseName !== "256x256.png") {
|
if (baseName !== "256x256.png") {
|
||||||
destPath = path.join(buildPath, path.basename(resource));
|
destPath = path.join(buildPath, baseName);
|
||||||
} else {
|
} else {
|
||||||
destPath = path.join(buildPath, "icon.png");
|
destPath = path.join(buildPath, "icon.png");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user