feat: the pake debug option should support build a debug application
This commit is contained in:
3
bin/builders/BaseBuilder.ts
vendored
3
bin/builders/BaseBuilder.ts
vendored
@@ -98,7 +98,8 @@ export default abstract class BaseBuilder {
|
||||
abstract getFileName(): string;
|
||||
|
||||
protected getBuildCommand(): string {
|
||||
return 'npm run build';
|
||||
// the debug option should support `--debug` and `--release`
|
||||
return this.options.debug ? 'npm run build:debug' : 'npm run build';
|
||||
}
|
||||
|
||||
protected getBasePath(): string {
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
"start": "npm run dev",
|
||||
"dev": "npm run tauri dev",
|
||||
"build": "npm run tauri build --release",
|
||||
"build:debug": "npm run tauri build -- --debug",
|
||||
"build:mac": "npm run tauri build -- --target universal-apple-darwin",
|
||||
"build:all-unix": "chmod +x ./script/build.sh && ./script/build.sh",
|
||||
"build:all-windows": "pwsh ./script/build.ps1",
|
||||
|
||||
Reference in New Issue
Block a user