File tree 1 file changed +9
-2
lines changed
packages/common/electron-build/src/hooks
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ const platformNamesMap = {
15
15
win32 : 'windows' ,
16
16
} ;
17
17
const updateYmlMap = {
18
- darwin : 'latest-mac.yml' ,
18
+ darwin_universal : 'latest-mac.yml' ,
19
+ darwin_x64 : 'latest-mac-x64.yml' ,
20
+ darwin_arm64 : 'latest-mac-arm64.yml' ,
19
21
linux : 'latest-linux.yml' ,
20
22
win32 : 'latest.yml' ,
21
23
} ;
@@ -70,8 +72,13 @@ export const postMake: ForgeHookMap['postMake'] = async (
70
72
throw new Error ( 'Missing required artifact or platform information' ) ;
71
73
}
72
74
75
+ const ymlKey =
76
+ firstResult . platform === 'darwin'
77
+ ? `${ firstResult . platform } _${ firstResult . arch } `
78
+ : firstResult . platform ;
79
+
73
80
const ymlPath = `${ path . dirname ( firstResult . artifacts [ 0 ] ) } /${
74
- updateYmlMap [ firstResult . platform as keyof typeof updateYmlMap ]
81
+ updateYmlMap [ ymlKey as keyof typeof updateYmlMap ]
75
82
} `;
76
83
77
84
const ymlStr = yaml . dump ( yml , {
You can’t perform that action at this time.
0 commit comments