remove unneeded register_template_string

This commit is contained in:
amrbashir 2024-10-28 15:00:40 +03:00
parent 657ecc0564
commit ae024b8299
No known key found for this signature in database
GPG Key ID: BBD7A47A2003FF33
1 changed files with 1 additions and 4 deletions

View File

@ -106,10 +106,7 @@ pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {
// initialize shell script template.
let mut handlebars = Handlebars::new();
handlebars.register_escape_fn(handlebars::no_escape);
handlebars
.register_template_string("appimage", include_str!("./appimage"))
.expect("Failed to register template for handlebars");
let temp = handlebars.render("appimage", &sh_map)?;
let temp = handlebars.render_template(include_str!("./appimage"), &sh_map)?;
// create the shell script file in the target/ folder.
let sh_file = output_path.join("build_appimage.sh");