Skip to content

Commit fbf787c

Browse files
changkundevelar
authored andcommitted
fix: productName with utf8 characters cause dmg icon position error
Close #1234
1 parent ec2eed0 commit fbf787c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/electron-builder/templates/dmg/dmgProperties.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use Mac::Memory qw( );
55
use Mac::Files qw( NewAliasMinimal );
66
use Encode ();
7+
use utf8;
78

89
my($backgroundWidth, $backgroundHeight);
910

@@ -69,4 +70,4 @@ sub syscall_setfinderinfo {
6970
my($r) = syscall(SYS_setattrlist, $path, $bits, $data, length($data), 0);
7071
die "setattrlist($path): $!\n"
7172
if $r == -1;
72-
}
73+
}

0 commit comments

Comments
 (0)