mirror of
https://github.com/pumpbin/pumpbin
synced 2026-03-14 23:04:30 -07:00
27 lines
609 B
Rust
27 lines
609 B
Rust
fn main() {
|
|
#[cfg(debug_assertions)]
|
|
{
|
|
capnpc::CompilerCommand::new()
|
|
.src_prefix("capnp")
|
|
.file("capnp/plugin.capnp")
|
|
.output_path("capnp")
|
|
.run()
|
|
.expect("schema compiler command");
|
|
}
|
|
|
|
#[cfg(target_os = "windows")]
|
|
{
|
|
let mut res = winresource::WindowsResource::new();
|
|
res.set_icon("logo/icon.ico");
|
|
res.compile().unwrap();
|
|
}
|
|
|
|
#[cfg(target_os = "macos")]
|
|
{
|
|
use std::fs;
|
|
|
|
let version = env!("CARGO_PKG_VERSION");
|
|
fs::write("VERSION", version).unwrap();
|
|
}
|
|
}
|