앱 실시간 갱신 수정

This commit is contained in:
Macbook
2026-06-14 19:41:49 +09:00
parent c105ae209b
commit ad6347f2a2
9 changed files with 71 additions and 39 deletions
+2
View File
@@ -11,6 +11,8 @@ const sharedRoot = path.resolve(__dirname, '../packages/shared/src');
const host = process.env.TAURI_DEV_HOST;
function readDesktopAppVersion(): string {
const fromEnv = process.env.DESKTOP_APP_VERSION?.trim();
if (fromEnv) return fromEnv;
try {
const confPath = path.resolve(__dirname, 'src-tauri/tauri.conf.json');
const conf = JSON.parse(readFileSync(confPath, 'utf8')) as { version?: string };