-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
The relevant code can be found at
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