From 8d37b7eb0fc84fb8d8a5ea713a5ebcb16b73d79b Mon Sep 17 00:00:00 2001 From: develar <develar@gmail.com> Date: Fri, 28 Oct 2016 19:21:02 +0200 Subject: [PATCH] fix: DMG background resource must be resolved using project dir Closes #858 --- src/targets/dmg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/targets/dmg.ts b/src/targets/dmg.ts index 03ef1c96259..8b6085b4e63 100644 --- a/src/targets/dmg.ts +++ b/src/targets/dmg.ts @@ -27,7 +27,7 @@ export class DmgTarget extends Target { const backgroundDir = path.join(tempDir, ".background") const backgroundFilename = specification.background == null ? null : path.basename(specification.background) if (backgroundFilename != null) { - await copy(specification.background!, path.join(backgroundDir, backgroundFilename)) + await copy(path.resolve(packager.info.projectDir, specification.background!), path.join(backgroundDir, backgroundFilename)) } let preallocatedSize = 32 * 1024