From 0263f624439e4317d1f098d3aba510d3f7859333 Mon Sep 17 00:00:00 2001 From: CRT Date: Sat, 24 Oct 2026 12:11:56 +0800 Subject: [PATCH] mas build: cargo target folder is src-tauri/target --- cli/apple/build-mas.ts | 4 ++-- cli/lib/mas.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/apple/build-mas.ts b/cli/apple/build-mas.ts index d1bb17c..82beef3 100644 --- a/cli/apple/build-mas.ts +++ b/cli/apple/build-mas.ts @@ -164,8 +164,8 @@ export async function run(ctx: Ctx): Promise { writeFileSync(configFile, `${JSON.stringify(overlay, null, 2)}\n`); shipPhase('build', `tauri build ${target}, build ${buildNo}`); await runLogged(steps.tauri, tauri.cwd, join(out, 'tauri-build.log'), showCmd(steps.tauri, null), env); - const appDir = findBuiltApp(tauri.cwd, root, target, tauri.productName); - if (!appDir) throw new Error(`tauri build exited 0 but no ${tauri.productName}.app is under ${join(tauri.cwd, 'target', target, 'release/bundle/macos')} (see ${join(out, 'tauri-build.log')})`); + const appDir = findBuiltApp(tauri.dir, root, target, tauri.productName); + if (!appDir) throw new Error(`tauri build exited 0 but no ${tauri.productName}.app is under ${join(tauri.dir, 'target', target, 'release/bundle/macos')} (see ${join(out, 'tauri-build.log')})`); shipPhase('verify', `checking ${basenameOf(appDir)}`); if (!unsigned) { const v = run1(steps.codesignVerify.map(x => (x.endsWith('.app') ? appDir : x))); diff --git a/cli/lib/mas.ts b/cli/lib/mas.ts index cc5d15b..c870b5d 100644 --- a/cli/lib/mas.ts +++ b/cli/lib/mas.ts @@ -228,7 +228,7 @@ export interface MasPlanInput { /** The commands of one build, as shown by --dry and run by build-mas. Pure. */ export function masSteps(i: MasPlanInput): { tauri: string[]; productbuild: string[]; codesignVerify: string[]; pkgCheck: string[] } { - const appPath = join(i.tauri.cwd, 'target', i.target, 'release', 'bundle', 'macos', `${i.tauri.productName}.app`); + const appPath = join(i.tauri.dir, 'target', i.target, 'release', 'bundle', 'macos', `${i.tauri.productName}.app`); return { tauri: [...i.tauriCmd, 'build', '--bundles', 'app', '--target', i.target, '--config', i.configFile], codesignVerify: ['codesign', '--verify', '--deep', '--strict', '--verbose=2', appPath],