From 454e67da4fa3761c659fd93de5a2ddee2e769639 Mon Sep 17 00:00:00 2001 From: samtiz Date: Sun, 6 Jul 2025 01:50:02 +0900 Subject: [PATCH] v0.1.2 universal release --- electron-builder.yml | 14 +++++--------- src/features/listen/liveSummaryService.js | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) 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);