[−][src]Module fm_plugin::post_build
Controls bundling of the plug-in after build. Utilizes the cargo-post
crate. Requires settings to configured in config.toml
.
Example
Cargo.toml
[package.metadata.cargo-post.dependencies]
directories = "*"
toml = "*"
serde = { version = "1.0", features = ["derive"] }
fm_plugin = "*"
config.toml
[filemaker]
ext_path = "/path/to/Extentions"
bin_path = "/Applications/FileMaker Pro.app"
kill = true
launch = true
[plugin]
name = "plugin name"
bundle = true
move_to_ext = true
[code_signing]
sign = false
signtool_path = "/path/to/signtool.exe"
cert_path = "/path/to/cert.p12"
cert_pass = "password"
timestamp_url = "http://cert.timestamp.server.com"
[log]
path = "/path/to/plugin.log"
clear_on_launch = true
post_build.rs
#[cfg(any(target_os = "windows", target_os = "macos"))] fn main() -> Result<(), Box<dyn std::error::Error>> { fm_plugin::post_build::bundle_plugin()?; Ok(()) }
Functions
bundle_plugin | Handles bundling, renaming, and moving of the lib after build. |