/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/desktop/app/paths.desktop.tsx
27 строк
889 B
chrisnojima-zoom
Version 670 - clean2 (#29122)
08 июн 2026, 19:31
Не верифицирован
08 июн 2026, 19:31
1943197
Код
Авторство
О чём код?
import os from 'os' import path from 'path' import KB2 from '@/util/electron' import {app} from 'electron' const {env} = KB2.constants // Path to keybase executable (darwin only), null if not available export function keybaseBinPath() { if (os.platform() === 'win32') { let guiAppPath = app.getAppPath() if (env.LOCALAPPDATA && !guiAppPath) { guiAppPath = path.resolve(env.LOCALAPPDATA, 'Keybase', 'Gui', 'resources', 'app') } if (!guiAppPath) { console.log('No keybase bin path') return } const kbPath = path.resolve(guiAppPath, '..', '..', '..') console.log(`expected path to keybase binaries is ${kbPath}`) return path.resolve(String(kbPath), 'keybase.exe') } if (os.platform() === 'darwin') { return path.resolve(app.getAppPath(), '..', '..', '..', 'Contents', 'SharedSupport', 'bin', 'keybase') } else { return } }