bootstrap await import 수정: path/app을 최상위 import로 변경
This commit is contained in:
parent
0b76b9c471
commit
74e027d058
1 changed files with 1 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
// src/main/bootstrap.ts — 초기화 시퀀스
|
// src/main/bootstrap.ts — 초기화 시퀀스
|
||||||
|
|
||||||
|
import { join } from 'path'
|
||||||
import { app, dialog, globalShortcut, ipcMain as ipcMainRef } from 'electron'
|
import { app, dialog, globalShortcut, ipcMain as ipcMainRef } from 'electron'
|
||||||
import { initLoggerService, getLogger } from './services/LoggerService'
|
import { initLoggerService, getLogger } from './services/LoggerService'
|
||||||
import { initConfigService } from './services/ConfigService'
|
import { initConfigService } from './services/ConfigService'
|
||||||
|
|
@ -139,8 +140,6 @@ async function initVoiceMode(): Promise<void> {
|
||||||
|
|
||||||
// 이력 저장 (오디오 파일 경로 포함)
|
// 이력 저장 (오디오 파일 경로 포함)
|
||||||
try {
|
try {
|
||||||
const { join } = await import('path')
|
|
||||||
const { app } = await import('electron')
|
|
||||||
const wordCount = finalText.split(/\s+/).filter((w) => w.length > 0).length
|
const wordCount = finalText.split(/\s+/).filter((w) => w.length > 0).length
|
||||||
const audioPath = join(app.getPath('userData'), 'recordings', `${session.id}.wav`)
|
const audioPath = join(app.getPath('userData'), 'recordings', `${session.id}.wav`)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue