From 893db4e22fb723785cdcfeb43ba88ff59af0940f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Jul 2026 16:51:08 +0000 Subject: [PATCH 1/2] Initial plan From 5031e32c7d5d15e1d2bee206ff9d02ea1d7af57d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Jul 2026 17:19:59 +0000 Subject: [PATCH 2/2] fix: patch appdmg@0.6.6 to use disk image path for hdiutil detach on macOS 15 On macOS 14/15 Sequoia arm64, the volume mount path captured from `hdiutil attach` (e.g. /Volumes/Amical) may become stale before the cleanup step runs, causing `hdiutil detach /Volumes/Amical` to fail with "No such file or directory". The disk image file path is stable and can always be used to detach the associated device. Changes: - patches/appdmg@0.6.6.patch: single-line fix in appdmg cleanup step to use global.temporaryImagePath (disk image path) instead of temporaryMountPath (volume mount path) for hdiutil detach - pnpm-workspace.yaml: migrate pnpm v10 settings (overrides, onlyBuiltDependencies, ignoredBuiltDependencies) from package.json pnpm field; add patchedDependencies for appdmg@0.6.6 - pnpm-lock.yaml: updated with patch hash for appdmg@0.6.6 --- patches/appdmg@0.6.6.patch | 13 +++++++++++++ pnpm-lock.yaml | 13 +++++++++---- pnpm-workspace.yaml | 31 +++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 4 deletions(-) create mode 100644 patches/appdmg@0.6.6.patch diff --git a/patches/appdmg@0.6.6.patch b/patches/appdmg@0.6.6.patch new file mode 100644 index 00000000..f1524fe7 --- /dev/null +++ b/patches/appdmg@0.6.6.patch @@ -0,0 +1,13 @@ +diff --git a/lib/appdmg.js b/lib/appdmg.js +index xxxxxxx..xxxxxxx 100644 +--- a/lib/appdmg.js ++++ b/lib/appdmg.js +@@ -227,7 +227,7 @@ + if (err) return next(err) + + pipeline.addCleanupStep('unmount-temporary-image', 'Unmounting temporary image', function (next) { +- hdiutil.detach(temporaryMountPath, next) ++ hdiutil.detach(global.temporaryImagePath, next) + }) + + global.temporaryMountPath = temporaryMountPath diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c56cb4f1..51e81cc2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,6 +9,11 @@ overrides: node-abi: 4.14.0 '@types/minimatch': 3.0.5 +patchedDependencies: + appdmg@0.6.6: + hash: fed756979040c4154849025dbcebeb287af08ef4790b4ac34c837a0533c9a21e + path: patches/appdmg@0.6.6.patch + importers: .: @@ -1063,11 +1068,11 @@ packages: '@esbuild-kit/core-utils@3.3.2': resolution: {integrity: sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ==} - deprecated: 'Merged into tsx: https://tsx.is' + deprecated: 'Merged into tsx: https://tsx.hirok.io' '@esbuild-kit/esm-loader@2.6.5': resolution: {integrity: sha512-FxEMIkJKnodyA1OaCUoEvbYRkoZlLZ4d/eXFu9Fh8CbBBgP5EmZxrfTRyN0qpXZ4vOvqnE5YdRdcrmUUXuU+dA==} - deprecated: 'Merged into tsx: https://tsx.is' + deprecated: 'Merged into tsx: https://tsx.hirok.io' '@esbuild/aix-ppc64@0.25.9': resolution: {integrity: sha512-OaGtL73Jck6pBKjNIe24BnFE6agGl+6KxDtTfHhy1HmhthfKouEcOhqpSL64K4/0WCtbKFLOdzD/44cJ4k9opA==} @@ -10407,7 +10412,7 @@ snapshots: normalize-path: 3.0.0 picomatch: 2.3.1 - appdmg@0.6.6: + appdmg@0.6.6(patch_hash=fed756979040c4154849025dbcebeb287af08ef4790b4ac34c837a0533c9a21e): dependencies: async: 1.5.2 ds-store: 0.1.6 @@ -11267,7 +11272,7 @@ snapshots: debug: 4.4.1 minimist: 1.2.8 optionalDependencies: - appdmg: 0.6.6 + appdmg: 0.6.6(patch_hash=fed756979040c4154849025dbcebeb287af08ef4790b4ac34c837a0533c9a21e) transitivePeerDependencies: - supports-color optional: true diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index ed76e786..b2590814 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -4,3 +4,34 @@ packages: - "packages/**" - "!packages/**/whisper.cpp/**" - "!apps/www" + +overrides: + '@electron-forge/maker-dmg': 'https://registry.npmjs.org/@fellow/maker-dmg/-/maker-dmg-7.4.0.tgz' + node-abi: 4.14.0 + '@types/minimatch': '3.0.5' + +onlyBuiltDependencies: + - electron + - electron-winstaller + - '@amical/whisper-wrapper' + - drizzle-orm/libsql + - '@libsql' + - macos-alias + - fs-xattr + - onnxruntime-node + - jest-worker + +ignoredBuiltDependencies: + - '@tailwindcss/oxide' + - core-js-pure + - electron + - electron-winstaller + - esbuild + - keytar + - protobufjs + - sharp + - '@amical/whisper-wrapper' + - drizzle-orm/libsql + +patchedDependencies: + appdmg@0.6.6: patches/appdmg@0.6.6.patch