updated build-script format

This commit is contained in:
pivodevat
2025-08-23 07:04:59 +03:00
parent 43a8696619
commit eeb4377bb3
7 changed files with 306 additions and 113 deletions

View File

@ -38,8 +38,12 @@ pub fn get_url<P: AsRef<Path>>(file_path: P) -> io::Result<String> {
}
pub fn get_deps<P: AsRef<Path>>(file_path: P) -> io::Result<String> {
extract_block(file_path, "``` sh dependencies", "```")
pub fn get_build_deps<P: AsRef<Path>>(file_path: P) -> io::Result<String> {
extract_block(file_path, "``` cfg build dependencies", "```")
}
pub fn get_run_deps<P: AsRef<Path>>(file_path: P) -> io::Result<String> {
extract_block(file_path, "``` cfg build dependencies", "```")
}
@ -47,6 +51,10 @@ pub fn get_build_script<P: AsRef<Path>>(file_path: P) -> io::Result<String> {
extract_block(file_path, "``` sh build.sctipt", "```")
}
pub fn get_config_script<P: AsRef<Path>>(file_path: P) -> io::Result<String> {
extract_block(file_path, "``` sh build.config", "```")
}
pub fn get_repo_list() -> io::Result<Vec<String>> {
let exe_path = env::current_exe()?;