mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-01-31 00:45:24 +01:00
* refactor: only inject API IIFE script when withGlobalTauri is true * fmt * update tauri
21 lines
420 B
Rust
21 lines
420 B
Rust
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
const COMMANDS: &[&str] = &[
|
|
"platform",
|
|
"version",
|
|
"os_type",
|
|
"family",
|
|
"arch",
|
|
"exe_extension",
|
|
"locale",
|
|
"hostname",
|
|
];
|
|
|
|
fn main() {
|
|
tauri_plugin::Builder::new(COMMANDS)
|
|
.global_api_script_path("./api-iife.js")
|
|
.build();
|
|
}
|