mirror of
https://github.com/radareorg/r2ghidra.git
synced 2026-11-07 06:25:57 -10:00
Use fakeroot to build the debian package in the CI
This commit is contained in:
1 parent
0f57a9bdd5
commit
1f21ed33a9
1 file changed
+9
-1
Vendored
+9
-1
@@ -1,5 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
type fakeroot > /dev/null 2>&1
|
||||
if [ $? = 0 ]; then
|
||||
FAKEROOT=fakeroot
|
||||
else
|
||||
FAKEROOT=sudo
|
||||
fi
|
||||
|
||||
r2 -qv
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
@@ -25,4 +32,5 @@ make R2_PLUGDIR=${R2_LIBR_PLUGINS} DESTDIR=${DESTDIR}
|
||||
|
||||
./configure --prefix=/usr
|
||||
make -j4
|
||||
sudo make install DESTDIR="${DESTDIR}"
|
||||
strip --strip-unneeded src/core_ghidra.so
|
||||
${FAKEROOT} make install DESTDIR="${DESTDIR}"
|
||||
Reference in new issue
Block a user