ksud: unify version

This commit is contained in:
tiann
2023-02-03 19:34:19 +08:00
parent ed2176af8c
commit aa73c34db2
4 changed files with 51 additions and 2 deletions

View File

@@ -209,6 +209,8 @@ fn exec_script<T: AsRef<Path>>(path: T, wait: bool) -> Result<()> {
.arg("sh")
.arg(path.as_ref())
.env("ASH_STANDALONE", "1")
.env("KSU_VER_CODE", defs::VERSION_CODE)
.env("KSU_VER", defs::VERSION_NAME)
.env(
"PATH",
format!("{}:{}", env_var("PATH").unwrap(), defs::BINARY_DIR),