Skip to content

Commit 2a2d832

Browse files
committed
fix: electron-builder uploads null.blockmap file
Close #2312
1 parent 9d6eb96 commit 2a2d832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/electron-builder-lib/src/targets/differentialUpdateInfoBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export async function createBlockmap(file: string, target: Target, packager: Pla
7070
const updateInfo: BlockMapDataHolder = JSON.parse(await exec(appBuilderPath, ["blockmap", "--input", file, "--output", blockMapFile]))
7171
packager.info.dispatchArtifactCreated({
7272
file: blockMapFile,
73-
safeArtifactName: `${safeArtifactName}${BLOCK_MAP_FILE_SUFFIX}`,
73+
safeArtifactName: safeArtifactName == null ? null : `${safeArtifactName}${BLOCK_MAP_FILE_SUFFIX}`,
7474
target,
7575
arch: null,
7676
packager,

0 commit comments

Comments
 (0)