updated build-script format
This commit is contained in:
@ -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()?;
|
||||
|
||||
Reference in New Issue
Block a user