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
/// 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.
2413
2448
#[serde(alias = "before-dev-command")]
2414
-
pubbefore_dev_command:Option<String>,
2449
+
pubbefore_dev_command:Option<BeforeDevCommand>,
2415
2450
/// A shell command to run before `tauri build` kicks in.
2416
2451
///
2417
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.
Copy file name to clipboardExpand all lines: tooling/cli/schema.json
+77-6Lines changed: 77 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2449,16 +2449,24 @@
2449
2449
},
2450
2450
"beforeDevCommand": {
2451
2451
"description": "A shell command to run before `tauri dev` 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.",
2452
-
"type": [
2453
-
"string",
2454
-
"null"
2452
+
"anyOf": [
2453
+
{
2454
+
"$ref": "#/definitions/BeforeDevCommand"
2455
+
},
2456
+
{
2457
+
"type": "null"
2458
+
}
2455
2459
]
2456
2460
},
2457
2461
"beforeBuildCommand": {
2458
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.",
2459
-
"type": [
2460
-
"string",
2461
-
"null"
2463
+
"anyOf": [
2464
+
{
2465
+
"$ref": "#/definitions/BeforeBuildCommand"
2466
+
},
2467
+
{
2468
+
"type": "null"
2469
+
}
2462
2470
]
2463
2471
},
2464
2472
"features": {
@@ -2499,6 +2507,69 @@
2499
2507
}
2500
2508
]
2501
2509
},
2510
+
"BeforeDevCommand": {
2511
+
"description": "Describes the shell command to run before `tauri dev`.",
2512
+
"anyOf": [
2513
+
{
2514
+
"description": "Run the given script with the default options.",
2515
+
"type": "string"
2516
+
},
2517
+
{
2518
+
"description": "Run the given script with custom options.",
2519
+
"type": "object",
2520
+
"required": [
2521
+
"script"
2522
+
],
2523
+
"properties": {
2524
+
"script": {
2525
+
"description": "The script to execute.",
2526
+
"type": "string"
2527
+
},
2528
+
"cwd": {
2529
+
"description": "The current working directory.",
2530
+
"type": [
2531
+
"string",
2532
+
"null"
2533
+
]
2534
+
},
2535
+
"wait": {
2536
+
"description": "Whether `tauri dev` should wait for the command to finish or not. Defaults to `false`.",
2537
+
"default": false,
2538
+
"type": "boolean"
2539
+
}
2540
+
}
2541
+
}
2542
+
]
2543
+
},
2544
+
"BeforeBuildCommand": {
2545
+
"description": "Describes the shell command to run before `tauri build`.",
2546
+
"anyOf": [
2547
+
{
2548
+
"description": "Run the given script with the default options.",
2549
+
"type": "string"
2550
+
},
2551
+
{
2552
+
"description": "Run the given script with custom options.",
2553
+
"type": "object",
2554
+
"required": [
2555
+
"script"
2556
+
],
2557
+
"properties": {
2558
+
"script": {
2559
+
"description": "The script to execute.",
2560
+
"type": "string"
2561
+
},
2562
+
"cwd": {
2563
+
"description": "The current working directory.",
2564
+
"type": [
2565
+
"string",
2566
+
"null"
2567
+
]
2568
+
}
2569
+
}
2570
+
}
2571
+
]
2572
+
},
2502
2573
"PluginConfig": {
2503
2574
"description": "The plugin configs holds a HashMap mapping a plugin name to its configuration object.",
0 commit comments