mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-25 00:31:08 +00:00
Add blessr2 into r2pm
This commit is contained in:
parent
db8fbcc68b
commit
8c89b34009
23
binr/r2pm/d/blessr2
Normal file
23
binr/r2pm/d/blessr2
Normal file
@ -0,0 +1,23 @@
|
||||
R2PM_BEGIN
|
||||
|
||||
R2PM_GIT "https://github.com/radare/radare2-extras"
|
||||
R2PM_DESC "[tui-node] Bless-based radare2 TUI"
|
||||
|
||||
BINDIR="${R2PM_PLUGDIR}/../bin"
|
||||
|
||||
R2PM_INSTALL() {
|
||||
cd blessr2
|
||||
node --version || exit 1
|
||||
npm install || exit 1
|
||||
mkdir -p "${BINDIR}"
|
||||
echo '#!/bin/sh' > "${BINDIR}/blessr2"
|
||||
echo "exec node '`pwd`'"'/index.js $*' >> "${BINDIR}/blessr2"
|
||||
chmod +x "${BINDIR}"/blessr2
|
||||
echo "Include ${BINDIR} in your PATH"
|
||||
}
|
||||
|
||||
R2PM_UNINSTALL() {
|
||||
rm -f "${BINDIR}"/blessr2
|
||||
}
|
||||
|
||||
R2PM_END
|
Loading…
x
Reference in New Issue
Block a user