diff --git a/forge.config.ts b/forge.config.ts index e68b200fad..e7e508546f 100644 --- a/forge.config.ts +++ b/forge.config.ts @@ -23,6 +23,8 @@ const commonLinuxConfig = { mimeType: ['x-scheme-handler/electron-fiddle'], }; +const requirements = path.resolve(__dirname, 'tools/certs/requirements.txt'); + const config: ForgeConfig = { hooks: { generateAssets: async () => { @@ -95,15 +97,15 @@ const config: ForgeConfig = { OriginalFilename: 'Electron Fiddle', }, osxSign: { - identity: - 'Developer ID Application: OpenJS Foundation, Inc. (UY52UFTVTM)', + identity: 'Developer ID Application: Felix Rieseberg (LT94ZKYDCJ)', optionsForFile: (filePath) => ['(Plugin).app', '(GPU).app', '(Renderer).app'].some((helper) => filePath.includes(helper), ) - ? {} + ? { requirements } : { entitlements: 'static/entitlements.plist', + requirements, }, }, }, diff --git a/tools/certs/requirements.txt b/tools/certs/requirements.txt new file mode 100644 index 0000000000..27b5f14724 --- /dev/null +++ b/tools/certs/requirements.txt @@ -0,0 +1 @@ +designated => anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and ( certificate leaf[subject.OU] = LT94ZKYDCJ or certificate leaf[subject.OU] = UY52UFTVTM ) \ No newline at end of file