2024-05-15 05:16:02 +02:00
|
|
|
import { extraResolve } from '$electron/helpers/index.js'
|
2024-09-07 19:55:54 +02:00
|
|
|
import which from 'which'
|
2023-10-30 09:36:16 +01:00
|
|
|
|
|
|
|
export const getGnirehtetPath = () => {
|
|
|
|
switch (process.platform) {
|
|
|
|
// case 'darwin':
|
|
|
|
// return extraResolve('mac/gnirehtet/gnirehtet')
|
|
|
|
case 'win32':
|
|
|
|
return extraResolve('win/gnirehtet/gnirehtet.exe')
|
|
|
|
case 'linux':
|
|
|
|
return extraResolve('linux/gnirehtet/gnirehtet')
|
|
|
|
default:
|
|
|
|
return which.sync('gnirehtet', { nothrow: true })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export const gnirehtetPath = getGnirehtetPath()
|
|
|
|
|
|
|
|
export const gnirehtetApkPath = extraResolve('common/gnirehtet/gnirehtet.apk')
|