mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
* feat: move over to workspaces * chore: Move to libs * chore:fix(build): Compat * chore: fixing pr
14 lines
342 B
Rust
14 lines
342 B
Rust
use std::path::{Path, PathBuf};
|
|
|
|
use models::{PackageId, Version};
|
|
|
|
pub const PKG_SCRIPT_DIR: &str = "package-data/scripts";
|
|
|
|
pub fn script_dir<P: AsRef<Path>>(datadir: P, pkg_id: &PackageId, version: &Version) -> PathBuf {
|
|
datadir
|
|
.as_ref()
|
|
.join(&*PKG_SCRIPT_DIR)
|
|
.join(pkg_id)
|
|
.join(version.as_str())
|
|
}
|