File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,6 @@ stdenv.mkDerivation (finalAttrs: {
8989
9090 # disable code signing on macos
9191 # https://github.com/electron-userland/electron-builder/blob/77f977435c99247d5db395895618b150f5006e8f/docs/code-signing.md#how-to-disable-code-signing-during-the-build-process-on-macos
92- postConfigure = lib . optionalString stdenv . hostPlatform . isDarwin ''
93- export CSC_IDENTITY_AUTO_DISCOVERY=false
94- '' ;
9592
9693 # electron builds must be writable
9794 preBuild = ''
@@ -119,7 +116,8 @@ stdenv.mkDerivation (finalAttrs: {
119116 --dir \
120117 -c.asarUnpack="**/*.node" \
121118 -c.electronDist=${ if stdenv . hostPlatform . isDarwin then "." else "electron-dist" } \
122- -c.electronVersion=${ electron . version }
119+ -c.electronVersion=${ electron . version } \
120+ ${ lib . optionalString stdenv . hostPlatform . isDarwin "-c.mac.identity=null" } # disable code signing on macos, https://github.com/electron-userland/electron-builder/blob/77f977435c99247d5db395895618b150f5006e8f/docs/code-signing.md#how-to-disable-code-signing-during-the-build-process-on-macos
123121
124122 runHook postBuild
125123 '' ;
You can’t perform that action at this time.
0 commit comments