Skip to content

Commit

Permalink
remove unneeded register_template_string
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Oct 28, 2024
1 parent 657ecc0 commit ae024b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/tauri-bundler/src/bundle/linux/appimage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit ae024b8

Please sign in to comment.