diff --git a/packages/electron-builder-lib/src/targets/differentialUpdateInfoBuilder.ts b/packages/electron-builder-lib/src/targets/differentialUpdateInfoBuilder.ts index ce812614b74..47d1784822e 100644 --- a/packages/electron-builder-lib/src/targets/differentialUpdateInfoBuilder.ts +++ b/packages/electron-builder-lib/src/targets/differentialUpdateInfoBuilder.ts @@ -70,7 +70,7 @@ export async function createBlockmap(file: string, target: Target, packager: Pla const updateInfo: BlockMapDataHolder = JSON.parse(await exec(appBuilderPath, ["blockmap", "--input", file, "--output", blockMapFile])) packager.info.dispatchArtifactCreated({ file: blockMapFile, - safeArtifactName: `${safeArtifactName}${BLOCK_MAP_FILE_SUFFIX}`, + safeArtifactName: safeArtifactName == null ? null : `${safeArtifactName}${BLOCK_MAP_FILE_SUFFIX}`, target, arch: null, packager,