2026-05-26 09:12:36 +08:00
|
|
|
#!/usr/bin/env -S bun
|
|
|
|
|
|
|
|
|
|
import { resolveBuildInfo } from '../scripts/lib/resolve-buildinfo.ts'
|
|
|
|
|
|
2026-08-28 06:56:25 +00:00
|
|
|
const info = resolveBuildInfo({
|
|
|
|
|
env: { ...process.env, DIFYCTL_CHANNEL: process.env.DIFYCTL_CHANNEL ?? 'dev' },
|
|
|
|
|
})
|
2026-05-26 09:12:36 +08:00
|
|
|
globalThis.__DIFYCTL_VERSION__ = info.version
|
|
|
|
|
globalThis.__DIFYCTL_COMMIT__ = info.commit
|
|
|
|
|
globalThis.__DIFYCTL_BUILD_DATE__ = info.buildDate
|
|
|
|
|
globalThis.__DIFYCTL_CHANNEL__ = info.channel
|
2026-10-19 03:31:32 +00:00
|
|
|
globalThis.__DIFYCTL_COMPILED__ = false
|
2026-05-26 09:12:36 +08:00
|
|
|
|
2026-09-30 01:58:58 +00:00
|
|
|
const { main } = await import('../src/main.ts')
|
|
|
|
|
process.exitCode = await main(process.argv.slice(2))
|