mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
fix(deno)
This commit is contained in:
parent
9affec5ac0
commit
b8d1df3a94
|
@ -1,13 +0,0 @@
|
|||
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs
|
||||
index a43ec84..99784be 100644
|
||||
--- a/cli/tools/installer.rs
|
||||
+++ b/cli/tools/installer.rs
|
||||
@@ -123,7 +123,7 @@ fn get_installer_root() -> Result<PathBuf, io::Error> {
|
||||
format!("${home_env_var} is not defined"),
|
||||
)
|
||||
})?;
|
||||
- home_path.push(".deno");
|
||||
+ home_path.push(".local");
|
||||
Ok(home_path)
|
||||
}
|
||||
|
|
@ -37,7 +37,9 @@ build:
|
|||
fi
|
||||
|
||||
# change default bindir to ~/.local/bin per our conventions
|
||||
git apply props/default_bindir.diff
|
||||
sed -i.bak -e 's/home_path.push(".deno")/home_path.push(".local")/' cli/tools/installer.rs
|
||||
rm cli/tools/installer.rs.bak
|
||||
grep home_path cli/tools/installer.rs
|
||||
|
||||
cargo build --release
|
||||
mkdir -p "{{ prefix }}"/bin
|
||||
|
|
Loading…
Reference in a new issue