Expand description
Handles the force quitting of FileMaker before building the plug-in. This serves two purposes:
- Allowing you to re-load the plug-in in FileMaker.
- Sometimes FileMaker locks a
.dllin the target folder during testing and prevents cargo from building.
§Example
Cargo.toml
[build-dependencies]
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 = true
[code_signing.macos]
identity = ""
[code_signing.windows]
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 = truebuild.rs
#[cfg(any(target_os = "windows", target_os = "macos"))]
fn main() -> Result<(), Box<dyn std::error::Error>> {
fm_plugin::kill_filemaker()?;
Ok(())
}Functions§
- kill_
filemaker - Force quits FileMaker using the path provided in
config.toml.