cargo-telar 0.2.1

Cargo subcommand for Telar apps: dev server with hot reload, and packaging into native installers.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::*;

#[test]
fn apprun_execs_the_bundled_binary() {
    let script = apprun_script("myapp");
    assert!(
        script.starts_with("#!/bin/sh\n"),
        "AppRun has to be a shell script:\n{script}"
    );
    assert!(
        script.contains("exec \"$HERE/usr/bin/myapp\" \"$@\""),
        "{script}"
    );
}