Skip to content

Commit e07e23b

Browse files
authored
only notarize mac builds (#239)
1 parent effb9a5 commit e07e23b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

resources/js/build/notarize.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import { notarize } from '@electron/notarize';
22

33
export default async (context) => {
4-
if (process.platform !== 'darwin') return
4+
// Only notarize when process is running on a Mac
5+
if (process.platform !== 'darwin') return;
6+
7+
// And the current build target is macOS
8+
if (context.packager.platform.name !== 'mac') return;
59

610
console.log('aftersign hook triggered, start to notarize app.')
711

0 commit comments

Comments
 (0)