You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Run the given script with the default options.
2405
2405
Script(String),
2406
2406
/// Run the given script with custom options.
@@ -2451,7 +2451,12 @@ pub struct BuildConfig {
2451
2451
///
2452
2452
/// The TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG environment variables are set if you perform conditional compilation.
/// A shell command to run before the bundling phase in `tauri build` kicks in.
2456
+
///
2457
+
/// The TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG environment variables are set if you perform conditional compilation.
2458
+
#[serde(alias = "before-build-command")]
2459
+
pubbefore_bundle_command:Option<HookCommand>,
2455
2460
/// Features passed to `cargo` commands.
2456
2461
pubfeatures:Option<Vec<String>>,
2457
2462
/// Whether we should inject the Tauri API on `window.__TAURI__` or not.
@@ -2467,6 +2472,7 @@ impl Default for BuildConfig {
Copy file name to clipboardExpand all lines: tooling/cli/schema.json
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2462,7 +2462,18 @@
2462
2462
"description": "A shell command to run before `tauri build` kicks in.\n\nThe TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG environment variables are set if you perform conditional compilation.",
2463
2463
"anyOf": [
2464
2464
{
2465
-
"$ref": "#/definitions/BeforeBuildCommand"
2465
+
"$ref": "#/definitions/HookCommand"
2466
+
},
2467
+
{
2468
+
"type": "null"
2469
+
}
2470
+
]
2471
+
},
2472
+
"beforeBundleCommand": {
2473
+
"description": "A shell command to run before the bundling phase in `tauri build` kicks in.\n\nThe TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG environment variables are set if you perform conditional compilation.",
2474
+
"anyOf": [
2475
+
{
2476
+
"$ref": "#/definitions/HookCommand"
2466
2477
},
2467
2478
{
2468
2479
"type": "null"
@@ -2541,8 +2552,8 @@
2541
2552
}
2542
2553
]
2543
2554
},
2544
-
"BeforeBuildCommand": {
2545
-
"description": "Describes the shell command to run before `tauri build`.",
2555
+
"HookCommand": {
2556
+
"description": "Describes a shell command to be executed when a CLI hook is triggered.",
2546
2557
"anyOf": [
2547
2558
{
2548
2559
"description": "Run the given script with the default options.",
0 commit comments