fix systemaudiodump path

This commit is contained in:
sanio 2025-07-12 21:10:19 +09:00
parent 5f007096d7
commit 8402e7d296
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ extraResources:
to: out to: out
asarUnpack: asarUnpack:
- "src/assets/SystemAudioDump" - "src/ui/assets/SystemAudioDump"
- "**/node_modules/sharp/**/*" - "**/node_modules/sharp/**/*"
- "**/node_modules/@img/**/*" - "**/node_modules/@img/**/*"

View File

@ -471,8 +471,8 @@ class SttService {
const { app } = require('electron'); const { app } = require('electron');
const path = require('path'); const path = require('path');
const systemAudioPath = app.isPackaged const systemAudioPath = app.isPackaged
? path.join(process.resourcesPath, 'app.asar.unpacked', 'src', 'assets', 'SystemAudioDump') ? path.join(process.resourcesPath, 'app.asar.unpacked', 'src', 'ui', 'assets', 'SystemAudioDump')
: path.join(app.getAppPath(), 'src', 'assets', 'SystemAudioDump'); : path.join(app.getAppPath(), 'src', 'ui', 'assets', 'SystemAudioDump');
console.log('SystemAudioDump path:', systemAudioPath); console.log('SystemAudioDump path:', systemAudioPath);