diff --git a/electron-builder.yml b/electron-builder.yml index 8fa684f..8f7d820 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -23,11 +23,12 @@ files: # Additional resources to be copied into the app's resources directory extraResources: - - from: src/assets/SystemAudioDump - to: SystemAudioDump - from: pickleglass_web/out to: out +asarUnpack: + - "src/assets/SystemAudioDump" + # macOS specific configuration mac: # The application category type @@ -39,13 +40,8 @@ mac: hardenedRuntime: true entitlements: entitlements.plist entitlementsInherit: entitlements.plist - notarize: true target: - target: dmg - arch: - - x64 - - arm64 + arch: universal - target: zip - arch: - - x64 - - arm64 + arch: universal diff --git a/src/features/listen/liveSummaryService.js b/src/features/listen/liveSummaryService.js index bb1c845..e786ba2 100644 --- a/src/features/listen/liveSummaryService.js +++ b/src/features/listen/liveSummaryService.js @@ -766,7 +766,7 @@ async function startMacOSAudioCapture() { const { app } = require('electron'); const path = require('path'); const systemAudioPath = app.isPackaged - ? path.join(process.resourcesPath, 'SystemAudioDump') + ? path.join(process.resourcesPath, 'app.asar.unpacked', 'src', 'assets', 'SystemAudioDump') : path.join(app.getAppPath(), 'src', 'assets', 'SystemAudioDump'); console.log('SystemAudioDump path:', systemAudioPath);