Skip to content

Commit

Permalink
fix: DMG background resource must be resolved using project dir
Browse files Browse the repository at this point in the history
Closes #858
  • Loading branch information
develar committed Oct 28, 2016
1 parent e748369 commit 8d37b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/targets/dmg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d37b7e

Please sign in to comment.