mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Use latest jsdec and rz-ghidra to match rizin version
This commit is contained in:
parent
1488ff2eb3
commit
95879d4835
1
.github/workflows/ccpp.yml
vendored
1
.github/workflows/ccpp.yml
vendored
@ -153,7 +153,6 @@ jobs:
|
|||||||
export VERSION=$CUTTER_VERSION
|
export VERSION=$CUTTER_VERSION
|
||||||
ninja install
|
ninja install
|
||||||
"../scripts/appimage_embed_python.sh" appdir
|
"../scripts/appimage_embed_python.sh" appdir
|
||||||
# "../scripts/rz-ghidra.sh" -DCMAKE_INSTALL_PREFIX="`pwd`/appdir/usr" -DBUILD_CUTTER_PLUGIN=ON -DCUTTER_SOURCE_DIR="`pwd`/.."
|
|
||||||
APP_PREFIX=`pwd`/appdir/usr
|
APP_PREFIX=`pwd`/appdir/usr
|
||||||
# export LD_LIBRARY_PATH=${APP_PREFIX}/lib:$Shiboken2_ROOT/lib
|
# export LD_LIBRARY_PATH=${APP_PREFIX}/lib:$Shiboken2_ROOT/lib
|
||||||
export PATH=$PATH:${APP_PREFIX}/bin
|
export PATH=$PATH:${APP_PREFIX}/bin
|
||||||
|
3
dist/CMakeLists.txt
vendored
3
dist/CMakeLists.txt
vendored
@ -109,7 +109,8 @@ if(CUTTER_PACKAGE_RZ_GHIDRA)
|
|||||||
# installed Cutter.
|
# installed Cutter.
|
||||||
ExternalProject_Add(rz-ghidra
|
ExternalProject_Add(rz-ghidra
|
||||||
GIT_REPOSITORY https://github.com/rizinorg/rz-ghidra
|
GIT_REPOSITORY https://github.com/rizinorg/rz-ghidra
|
||||||
GIT_TAG rz-0.1.1
|
GIT_TAG v0.2.0
|
||||||
|
#GIT_SHALLOW ON # disable this line when using commit hash
|
||||||
CONFIGURE_COMMAND ""
|
CONFIGURE_COMMAND ""
|
||||||
BUILD_COMMAND ""
|
BUILD_COMMAND ""
|
||||||
INSTALL_COMMAND ""
|
INSTALL_COMMAND ""
|
||||||
|
2
dist/bundle_jsdec.ps1
vendored
2
dist/bundle_jsdec.ps1
vendored
@ -2,7 +2,7 @@ $dist = $args[0]
|
|||||||
$python = Split-Path((Get-Command python.exe).Path)
|
$python = Split-Path((Get-Command python.exe).Path)
|
||||||
|
|
||||||
if (-not (Test-Path -Path 'jsdec' -PathType Container)) {
|
if (-not (Test-Path -Path 'jsdec' -PathType Container)) {
|
||||||
git clone https://github.com/rizinorg/jsdec.git --branch v0.1.x --depth 1
|
git clone https://github.com/rizinorg/jsdec.git --branch v0.2.x --depth 1
|
||||||
}
|
}
|
||||||
cd jsdec
|
cd jsdec
|
||||||
& meson.exe --buildtype=release -Dc_args=-DDUK_USE_DATE_NOW_WINDOWS --prefix=$dist --libdir=lib\plugins --datadir=lib\plugins p build
|
& meson.exe --buildtype=release -Dc_args=-DDUK_USE_DATE_NOW_WINDOWS --prefix=$dist --libdir=lib\plugins --datadir=lib\plugins p build
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
scripts/rz-ghidra.sh \
|
|
||||||
-DCMAKE_C_COMPILER=cl \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DCMAKE_PREFIX_PATH="$APPVEYOR_BUILD_FOLDER/rz_dist;$APPVEYOR_BUILD_FOLDER/rz_dist/include/librz;$APPVEYOR_BUILD_FOLDER/rz_dist/include/librz/sdb" \
|
|
||||||
-DCMAKE_INSTALL_PREFIX="$APPVEYOR_BUILD_FOLDER/rz_dist" \
|
|
||||||
-DRIZIN_INSTALL_PLUGDIR="$APPVEYOR_BUILD_FOLDER/rz_dist/lib/plugins" \
|
|
||||||
-DBUILD_SLEIGH_PLUGIN=OFF
|
|
@ -7,7 +7,7 @@ SCRIPTPATH=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
|
|||||||
cd "$SCRIPTPATH/.."
|
cd "$SCRIPTPATH/.."
|
||||||
|
|
||||||
if [[ ! -d jsdec ]]; then
|
if [[ ! -d jsdec ]]; then
|
||||||
git clone https://github.com/rizinorg/jsdec.git --depth 1 --branch v0.1.x
|
git clone https://github.com/rizinorg/jsdec.git --depth 1 --branch v0.2.x
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd jsdec
|
cd jsdec
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
SCRIPTPATH=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
|
|
||||||
|
|
||||||
cd "$SCRIPTPATH/.."
|
|
||||||
|
|
||||||
if [[ ! -d rz-ghidra ]]; then
|
|
||||||
# remove depth, branch and uncomment lines below to use specifc commit
|
|
||||||
|
|
||||||
git clone --recurse-submodules https://github.com/rizinorg/rz-ghidra.git --depth 1 --branch master || exit 1
|
|
||||||
|
|
||||||
#pushd rz-ghidra
|
|
||||||
#git checkout --recurse-submodules 5e845f4b50e8559bd51af03b22b6586e8cc5c35c
|
|
||||||
#popd
|
|
||||||
fi
|
|
||||||
cd rz-ghidra || exit 1
|
|
||||||
|
|
||||||
mkdir build && cd build || exit 1
|
|
||||||
cmake -G Ninja "$@" .. || exit 1
|
|
||||||
ninja || exit 1
|
|
||||||
ninja install || exit 1
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user