Files
RuneStone/src-tauri/build.rs
T
Knotty Wyvern 90d1940c73 Make the checks pass on a fresh clone
- build.rs creates the empty browser-engine folder that tauri-build
  requires, so cargo test runs before the browser runtime is staged.
- The Table Formulas tests skip with a reason when the package is not
  built. Before, the missing module failed two whole test files.
- The installer test accepts CRLF checkouts and skips with a reason
  when the NSIS compiler is missing.
- hostTodo.spec.mjs never ran because of its extension. Its two valid
  background tests move to appearance.spec.ts with current defaults.
  The third test repeated an existing export test.
- Remove tsconfig.plugins.json. It checked the plugins/ folder, which
  moved to separate repositories in 0.1.7.
2026-10-27 19:41:08 -07:00

85 lines
3.0 KiB
Rust

fn main() {
// tauri-build requires every bundle resource to exist. `pnpm browser:stage` fills this
// folder for installers. An empty folder lets `cargo test` and `tauri dev` run without it.
std::fs::create_dir_all("browser-engine").expect("failed to create browser-engine");
tauri_build::try_build(
tauri_build::Attributes::new().app_manifest(
tauri_build::AppManifest::new().commands(&[
"theme_export",
"backgrounds_choose_folder",
"backgrounds_default_folder",
"backgrounds_list",
"backgrounds_read",
"backgrounds_read_image_settings",
"backgrounds_write_image_settings",
"spelling_suggestions",
"spelling_menu_install",
"spelling_menu_select",
"spelling_menu_uninstall",
"settings_open_window",
"completion_request",
"completion_cancel",
"browser_request",
"browser_connect",
"browser_stop",
"git_status",
"git_diff",
"git_stage",
"git_unstage",
"git_commit",
"git_blame",
"git_push",
"git_pull",
"git_graph",
"git_commit_diff",
"git_commit_details",
"workspace_open",
"workspace_open_window",
"workspace_last_path",
"workspace_recent",
"workspace_forget",
"workspace_new",
"workspace_list",
"workspace_list_markdown",
"workspace_read",
"workspace_read_many",
"workspace_read_bytes",
"workspace_write",
"workspace_create",
"workspace_rename",
"workspace_delete",
"workspace_read_data_url",
"workspace_write_bytes",
"workspace_copy",
"workspace_abs_path",
"workspace_reveal",
"workspace_open_terminal",
"workspace_open_default",
"workspace_search",
"plugins_snapshot",
"plugins_choose",
"plugins_from_git",
"plugins_cancel",
"plugins_install",
"plugins_set_enabled",
"plugins_load",
"plugins_release",
"plugins_prepare_remove",
"plugins_remove",
"plugins_retry_remove",
"plugins_reveal",
"plugins_data",
"plugins_asset",
"pty_open",
"pty_write",
"pty_resize",
"pty_close",
"pty_profiles",
"pty_new_window",
"pty_dictation",
]),
),
)
.expect("failed to run tauri-build");
}