-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix the issue where codesign cannot sign plugin bindings during …
…desktop building. (#6666)
- Loading branch information
1 parent
d56305a
commit 236f4f2
Showing
8 changed files
with
143 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
apps/desktop/src-electron/service/checkBiometricAuthChanged.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { checkBiometricAuthChanged } from 'electron-check-biometric-auth-changed'; | ||
|
||
import { ECheckBiometricAuthChangedEventType } from './enum'; | ||
|
||
// Child process | ||
process.parentPort.on( | ||
'message', | ||
(e: { | ||
data: { type: ECheckBiometricAuthChangedEventType; params: unknown }; | ||
}) => { | ||
switch (e.data.type) { | ||
case ECheckBiometricAuthChangedEventType.CheckBiometricAuthChanged: | ||
{ | ||
const result = checkBiometricAuthChanged(); | ||
process.parentPort.postMessage({ | ||
type: ECheckBiometricAuthChangedEventType.CheckBiometricAuthChanged, | ||
result, | ||
}); | ||
} | ||
break; | ||
default: | ||
break; | ||
} | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters