2023-10-17 15:27:08 +08:00
|
|
|
import { resolve } from 'node:path'
|
|
|
|
|
2024-05-15 11:16:02 +08:00
|
|
|
import { buildResolve, extraResolve } from '$electron/helpers/index.js'
|
2023-10-17 15:27:08 +08:00
|
|
|
|
2023-10-30 11:13:02 +08:00
|
|
|
export { adbPath } from './android-platform-tools/index.js'
|
2023-10-30 11:04:43 +08:00
|
|
|
|
2024-09-08 01:55:54 +08:00
|
|
|
export { gnirehtetApkPath, gnirehtetPath } from './gnirehtet/index.js'
|
2023-10-30 11:04:43 +08:00
|
|
|
|
2024-09-08 01:55:54 +08:00
|
|
|
export { scrcpyPath } from './scrcpy/index.js'
|
2023-10-30 16:36:16 +08:00
|
|
|
|
2023-10-20 14:23:48 +08:00
|
|
|
export const desktopPath = process.env.DESKTOP_PATH
|
|
|
|
|
2023-10-17 15:27:08 +08:00
|
|
|
export const devPublishPath = resolve('dev-publish.yml')
|
|
|
|
|
2023-10-24 11:08:27 +08:00
|
|
|
export const logoPath = buildResolve('logo.png')
|
2023-10-17 15:27:08 +08:00
|
|
|
export const icoLogoPath = buildResolve('logo.ico')
|
|
|
|
export const icnsLogoPath = buildResolve('logo.icns')
|
|
|
|
|
2023-10-24 11:08:27 +08:00
|
|
|
export const trayPath
|
|
|
|
= process.platform === 'darwin'
|
2023-10-30 11:04:43 +08:00
|
|
|
? extraResolve('mac/tray/iconTemplate.png')
|
|
|
|
: extraResolve('common/tray/icon.png')
|
2023-10-20 21:56:27 +08:00
|
|
|
|
2023-10-25 18:17:19 +08:00
|
|
|
export const logPath = process.env.LOG_PATH
|
2024-09-12 19:11:46 +08:00
|
|
|
|
|
|
|
export function getLogoPath() {
|
2024-10-28 11:26:26 +08:00
|
|
|
const icon = logoPath
|
|
|
|
return icon
|
2024-09-12 19:11:46 +08:00
|
|
|
}
|