Files
aiturk-hermes-ide/apps/desktop/electron/aiturk-product.ts
T
yilsem dd5f99c406
Server CI and Windows package / verify (push) Failing after 2m2s
Server CI and Windows package / windows-package (push) Skipped
Move IDE sources and Windows packaging to the new server
2026-10-11 04:17:46 +03:00

28 lines
1.0 KiB
TypeScript

import path from 'node:path'
export const AITURK_PRODUCT = Object.freeze({
name: 'AITURK IDE',
appId: 'online.turkservis.aiturk.hermes',
protocol: 'aiturk-ide',
website: 'https://turkservis.online',
downloads: 'https://turkservis.online/ide',
repository: 'https://gitea.turkservis.online/yilsem/aiturk-hermes-ide',
apiBaseUrl: 'https://ai.turkservis.online/v1'
})
/** Never inherit another product's HERMES_HOME or migrate its state implicitly. */
export function resolveAiturkHome({ env, platform, home, userDataOverride }: {
env: Record<string, string | undefined>
platform: string
home: string
userDataOverride?: string
}): string {
const paths = platform === 'win32' ? path.win32 : path.posix
if (env.AITURK_IDE_HOME) return paths.resolve(env.AITURK_IDE_HOME)
if (userDataOverride) return paths.join(paths.resolve(userDataOverride), 'agent-home')
if (platform === 'win32' && env.LOCALAPPDATA) {
return paths.join(env.LOCALAPPDATA, 'TurkServis', 'AITURK-IDE', 'agent')
}
return paths.join(home, '.aiturk-ide', 'agent')
}