From 0af6d77bd8ff22f0f3c5b8fff9c826acd4aeb90b Mon Sep 17 00:00:00 2001 From: Il Harper Date: Sun, 12 May 2024 20:33:35 +0800 Subject: [PATCH] fix(build): fix `create-dmg` --- packages/build/tasks/pack/mac.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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')