update hooks functions
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
use std::fs;
|
||||
use crate::commands::link::link;
|
||||
use crate::utils::parser::{self, env::get_install_env};
|
||||
use crate::utils::shell::{run_install_script, run_install_script_hook};
|
||||
use crate::utils::shell::self;
|
||||
use super::{download, patch};
|
||||
|
||||
pub fn build(repo: &String, pkgname: &String) {
|
||||
@ -38,8 +38,9 @@ pub fn build(repo: &String, pkgname: &String) {
|
||||
|
||||
save_env(&applied_env, &full_env);
|
||||
|
||||
run_install_script(&build_script, &src_dir, &full_env);
|
||||
run_install_script_hook(repo, "build", &full_env);
|
||||
shell::run_install_script(&build_script, &src_dir, &full_env);
|
||||
shell::run_install_repo_stage_hook_script(repo, "build", &full_env);
|
||||
shell::run_install_stage_hook_script("download", &full_env);
|
||||
|
||||
fs::create_dir_all(&pkg_dir).ok();
|
||||
fs::write(&applied_build, &build_script).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user