Skip to main content

cargo_zng/res/built_in/
sfxf.rs

1use super::*;
2
3const SFXF_HELP: &str = r#"
4Build a self-extracting executable on the final pass
5
6Apart from running on final this tool behaves exactly like .zr-sfx
7"#;
8pub(super) fn sfxf() {
9    help(SFXF_HELP);
10    if std::env::var(ZR_FINAL).is_ok() {
11        sfx();
12    } else {
13        println!("zng-res::on-final=");
14    }
15}