fix: call the correct tauri subcommand

This commit is contained in:
Jonas Kruckenberg 2022-05-08 15:35:24 +02:00
parent 3c804267d8
commit f593898d49
No known key found for this signature in database
GPG Key ID: 21AD3B3C266BDE3D
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
"tauri-build": patch
---
Call the correct tauri subcommand

View File

@ -28,9 +28,9 @@ export async function buildProject(options: BuildOptions): Promise<string[]> {
process.chdir(projectPath)
if (options.runner) {
await execa(options.runner, args, { stdio: 'inherit' })
await execa(options.runner, ['build', ...args], { stdio: 'inherit' })
} else {
await run(args, '')
await run(['build', ...args], '')
}
const profile = options.debug ? 'debug' : 'release'