2023-10-17 09:27:08 +02:00
|
|
|
import { resolve } from 'node:path'
|
2023-10-20 15:56:27 +02:00
|
|
|
import which from 'which'
|
2023-10-17 09:27:08 +02:00
|
|
|
|
|
|
|
import { buildResolve, extraResolve } from '@electron/helpers/index.js'
|
|
|
|
|
2023-10-20 08:23:48 +02:00
|
|
|
export const desktopPath = process.env.DESKTOP_PATH
|
|
|
|
|
2023-10-17 09:27:08 +02:00
|
|
|
export const devPublishPath = resolve('dev-publish.yml')
|
|
|
|
|
2023-10-22 18:43:52 +02:00
|
|
|
export const logoPath = buildResolve('logo@256x256.png')
|
2023-10-17 09:27:08 +02:00
|
|
|
export const icoLogoPath = buildResolve('logo.ico')
|
|
|
|
export const icnsLogoPath = buildResolve('logo.icns')
|
|
|
|
|
2023-10-21 10:28:14 +02:00
|
|
|
export const trayPath = extraResolve('tray.png')
|
|
|
|
export const macTrayPath = extraResolve('tray-Template.png')
|
|
|
|
|
2023-10-20 12:17:58 +02:00
|
|
|
export const adbPath
|
2023-10-20 15:56:27 +02:00
|
|
|
= process.platform === 'win32'
|
|
|
|
? extraResolve('core/adb.exe')
|
|
|
|
: which.sync('adb', { nothrow: true })
|
2023-10-18 05:34:40 +02:00
|
|
|
|
2023-10-20 12:17:58 +02:00
|
|
|
export const scrcpyPath
|
2023-10-20 15:56:27 +02:00
|
|
|
= process.platform === 'win32'
|
|
|
|
? extraResolve('core/scrcpy.exe')
|
|
|
|
: which.sync('scrcpy', { nothrow: true })
|
|
|
|
|
|
|
|
// console.log('adbPath', adbPath)
|
|
|
|
// console.log('scrcpyPath', scrcpyPath)
|