mirror of
https://github.com/JonasKruckenberg/tauri-build.git
synced 2025-08-14 21:05:05 +00:00
fix: call the correct tauri subcommand
This commit is contained in:
parent
3c804267d8
commit
f593898d49
5
.changes/fix-build-args.md
Normal file
5
.changes/fix-build-args.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri-build": patch
|
||||
---
|
||||
|
||||
Call the correct tauri subcommand
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user