Skip to content

Add -l, --linked #6

@Fishrock123

Description

@Fishrock123

The relevant code can be found at

rustyduk/src/bundler.rs

Lines 35 to 53 in 3797dd1

if zip_only {
println!("Creating plain zip");
} else {
let exe = env::current_exe().unwrap();
println!("Embedding nucleus from {}", exe.to_str().unwrap());
let mut file = File::open(exe).unwrap();
let mut buf: Vec<u8> = Vec::new();
match file.read_to_end(&mut buf) {
Err(err) => { panic!(err.to_string()) }
_ => {}
}
match writer.write_all(buf.as_slice()) {
Err(err) => { panic!(err.to_string()) }
_ => {}
}
}

The zip_only bool will need to change to use a struct passed from the options parsing and example of what it needs to prepend to the zip bundle can be found in the c impl: https://github.com/nucleus-js/seaduk/blob/master/src/main.c#L390-L395

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions