看了一下electron api,不知道怎么获取sudo权限,试了一下失败了,还得靠大佬
systemPreferences.canPromptTouchID()
systemPreferences.promptTouchID(reason)