feat: add windows / linux / macos binaries on build

This commit is contained in:
MasutaYunikon committed 2026-03-13 03:38:34 +01:00
1 parent fb7e443c23
commit 8030bf14f9
7 files changed
+179 -22

No files matched your search

+6 -1
View File
@@ -1,7 +1,12 @@
import fs from 'fs'
import path from 'path'
const DATA_PATH = path.join(process.cwd(), 'data', 'settings.json')
const _isBunBinary = typeof (globalThis as any).Bun !== 'undefined'
&& path.dirname((process as any).execPath) !== process.cwd()
const BASE_DIR = _isBunBinary
? path.dirname((process as any).execPath)
: process.cwd()
const DATA_PATH = path.join(BASE_DIR, 'data', 'settings.json')
export interface Settings {
mediaPath : string