diff --git a/packages/build/tasks/pack/mac.ts b/packages/build/tasks/pack/mac.ts index 6e70483..cc16575 100644 --- a/packages/build/tasks/pack/mac.ts +++ b/packages/build/tasks/pack/mac.ts @@ -34,7 +34,14 @@ export const packMacDmg = async () => { dir('buildMac', 'Koishi.app/Contents/MacOS/koi.yml'), 'redirect: USERDATA' ) - await tryExec('yarn', ['create-dmg', appPath, dir('buildMac'), '--overwrite']) + await tryExec('yarn', [ + 'workspace', + 'koi-build', + 'create-dmg', + appPath, + dir('buildMac'), + '--overwrite', + ]) await fs.rename( dir('buildMac', `Koishi ${koiVersion}.dmg`), dir('dist', 'koishi.dmg')