Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions kokoro/deb/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ mkdir -p \
"${app_dir}/extra/config" \
"${app_dir}/extra/ghidra" \
"${app_dir}/libexec" \
"${app_dir}/plugins/binaryninja" \
"${app_dir}/plugins/idapro"
cp \
"${KOKORO_GFILE_DIR}/bindiff.jar" \
Expand All @@ -68,9 +67,6 @@ cp \
"${app_dir}/extra/config/bindiff_config.proto"
(cd "${app_dir}/extra/ghidra/" && \
unzip -q "${KOKORO_GFILE_DIR}/ghidra_BinExport.zip")
cp \
"${KOKORO_GFILE_DIR}/binexport${binexport_release}_binaryninja.so" \
"${app_dir}/plugins/binaryninja/"
cp \
"${KOKORO_GFILE_DIR}/bindiff${bindiff_release}_ida.so" \
"${KOKORO_GFILE_DIR}/bindiff${bindiff_release}_ida64.so" \
Expand Down
6 changes: 1 addition & 5 deletions kokoro/dmg/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export JAVA_HOME=${build_dir}/zulu16.30.15-ca-jdk16.0.1-macosx_x64/zulu-16.jdk/C
"${JAVA_HOME}/bin/jpackage" \
--type app-image \
--app-version "${bindiff_release}" \
--copyright '(c)2004-2011 zynamics GmbH, (c)2011-2024 Google LLC' \
--copyright '(c)2004-2011 zynamics GmbH, (c)2011-2025 Google LLC' \
--description 'Find similarities and differences in disassembled code' \
--name BinDiff \
--dest packaging/dmg/Package/Applications/BinDiff \
Expand Down Expand Up @@ -87,7 +87,6 @@ mkdir -p \
"${app_dir}/BinDiff.app/Contents/MacOS/bin" \
"${app_dir}/Extra/Config" \
"${app_dir}/Extra/Ghidra" \
"${app_dir}/Plugins/Binary Ninja" \
"${app_dir}/Plugins/IDA Pro"
install -m 0755 \
"${KOKORO_GFILE_DIR}/bindiff" \
Expand All @@ -99,9 +98,6 @@ cp \
"${app_dir}/Extra/Config/bindiff_config.proto"
(cd "${app_dir}/Extra/Ghidra/" && \
unzip -q "${KOKORO_GFILE_DIR}/ghidra_BinExport.zip")
cp \
"${KOKORO_GFILE_DIR}/binexport${binexport_release}_binaryninja.dylib" \
"${app_dir}/Plugins/Binary Ninja"
cp \
"${KOKORO_GFILE_DIR}/bindiff${bindiff_release}_ida.dylib" \
"${KOKORO_GFILE_DIR}/bindiff${bindiff_release}_ida64.dylib" \
Expand Down
7 changes: 1 addition & 6 deletions kokoro/macos/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,18 @@ src_dir=${KOKORO_ARTIFACTS_DIR}/git
out_dir=${build_dir}
deps_dir=${build_dir}

# Symlink extra Binary Ninja API dependency
mkdir -p "${KOKORO_PIPER_DIR}/google3/third_party/binaryninja_api/third_party"
ln -s "${KOKORO_PIPER_DIR}/google3/third_party/jsoncpp" \
"${KOKORO_PIPER_DIR}/google3/third_party/binaryninja_api/third_party/jsoncpp"

pushd "${build_dir}"
cmake "${src_dir}/bindiff" \
-DFETCHCONTENT_FULLY_DISCONNECTED=ON \
"-DFETCHCONTENT_SOURCE_DIR_ABSL=${KOKORO_ARTIFACTS_DIR}/git/absl" \
"-DFETCHCONTENT_SOURCE_DIR_GOOGLETEST=${KOKORO_ARTIFACTS_DIR}/git/googletest" \
"-DFETCHCONTENT_SOURCE_DIR_PROTOBUF=${KOKORO_ARTIFACTS_DIR}/git/protobuf" \
"-DFETCHCONTENT_SOURCE_DIR_BINARYNINJAAPI=${KOKORO_PIPER_DIR}/google3/third_party/binaryninja_api" \
"-DFETCHCONTENT_SOURCE_DIR_SQLITE=${KOKORO_PIPER_DIR}/google3/third_party/sqlite/src" \
"-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_RULE_MESSAGES=OFF \
"-DCMAKE_INSTALL_PREFIX=${out_dir}" \
-DBINEXPORT_ENABLE_BINARY_NINJA=OFF \
"-DBOOST_ROOT=${KOKORO_PIPER_DIR}/google3/third_party/boost/do_not_include_from_google3_only_third_party/boost" \
"-DIdaSdk_ROOT_DIR=${KOKORO_PIPER_DIR}/google3/third_party/idasdk"
cmake --build . --config Release -- "-j$(sysctl -n hw.logicalcpu)"
Expand Down
32 changes: 14 additions & 18 deletions kokoro/msi/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ for %%I in ("%BUILD_DIR%\wix" ^
"%APP_DIR%\bin" ^
"%APP_DIR%\Extra\Config" ^
"%APP_DIR%\Extra\Ghidra" ^
"%APP_DIR%\Plugins\Binary Ninja" ^
"%APP_DIR%\Plugins\IDA Pro") do if not exist "%%I" mkdir "%%I"

:: Set tool paths
Expand All @@ -46,9 +45,6 @@ for %%I in (bindiff.exe ^
binexport2dump.exe) do copy /Y ^
"%KOKORO_GFILE_DIR%\%%I" ^
"%APP_DIR%\bin\" || exit /b
copy /Y ^
"%KOKORO_GFILE_DIR%\binexport%BINEXPORT_RELEASE%_binaryninja.dll" ^
"%APP_DIR%\Plugins\Binary Ninja\" || exit /b
:: Omitting "\" in the "-d" argument below is intentional
unzip -q ^
"%KOKORO_GFILE_DIR%\ghidra_BinExport.zip" ^
Expand Down Expand Up @@ -109,19 +105,19 @@ copy /Y ^
"%BUILD_DIR%\Setup.wixobj" || exit /b

:: Release build, code sign the artifacts
if "%1" neq "release" call :codesign "%BUILD_DIR%\*.msi"

exit /b


:: Code-signs the specified artifacts and verifies them
:: %* artifacts to sign
:codesign

set ARTIFACTS=%*

ksigntool sign GOOGLE_EXTERNAL /v /debug /t http://timestamp.digicert.com ^
%ARTIFACTS% || exit /b
%SIGNTOOL% verify /pa /all %ARTIFACTS% || exit /b
@REM TODO(cblichmann): Re-enable code signing using a separate job.
@REM if "%1" neq "release" call :codesign "%BUILD_DIR%\*.msi"
@REM
@REM exit /b
@REM
@REM :: Code-signs the specified artifacts and verifies them
@REM :: %* artifacts to sign
@REM :codesign
@REM
@REM set ARTIFACTS=%*
@REM
@REM ksigntool sign GOOGLE_EXTERNAL /v /debug /t http://timestamp.digicert.com ^
@REM %ARTIFACTS% || exit /b
@REM %SIGNTOOL% verify /pa /all %ARTIFACTS% || exit /b

exit /b
2 changes: 0 additions & 2 deletions kokoro/ubuntu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ docker run \
-v "${KOKORO_ARTIFACTS_DIR}/git/absl":/build/out/_deps/absl-src \
-v "${KOKORO_ARTIFACTS_DIR}/git/googletest":/build/out/_deps/googletest-src \
-v "${KOKORO_ARTIFACTS_DIR}/git/protobuf":/build/out/_deps/protobuf-src \
-v "${KOKORO_PIPER_DIR}/google3/third_party/binaryninja_api":/build/out/_deps/binaryninjaapi-src \
-v "${KOKORO_PIPER_DIR}/google3/third_party/jsoncpp":/build/out/_deps/binaryninjaapi-src/third_party/jsoncpp \
-v "${KOKORO_PIPER_DIR}/google3/third_party/sqlite/src":/build/out/_deps/sqlite-src \
-v "${build_dir}/out":/build/out \
-v "${KOKORO_ARTIFACTS_DIR}":/build/src \
Expand Down
1 change: 0 additions & 1 deletion packaging/deb/bindiff/debian/bindiff.install
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ files/opt/bindiff/extra/config/bindiff_config.proto opt/bindiff/extra/config
files/opt/bindiff/extra/ghidra/README opt/bindiff/extra/ghidra
files/opt/bindiff/libexec/bindiff_config_setup opt/bindiff/libexec
files/opt/bindiff/plugins/binaryninja/README opt/bindiff/plugins/binaryninja
files/opt/bindiff/plugins/binaryninja/binexport12_binaryninja.so opt/bindiff/plugins/binaryninja
files/opt/bindiff/plugins/idapro/bindiff8_ida.so opt/bindiff/plugins/idapro
files/opt/bindiff/plugins/idapro/bindiff8_ida64.so opt/bindiff/plugins/idapro
files/opt/bindiff/plugins/idapro/binexport12_ida.so opt/bindiff/plugins/idapro
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
Using BinDiff with Binary Ninja
===============================

This directory contains a beta version of BinExport for the Binary Ninja
disassembler.
Like the IDA Pro plugin, it is open source.
This directory used to contain a version of BinExport for the Binary Ninja
disassembler. It now ships as part of Binary Ninja itself.
Like the IDA Pro plugin and the Ghidra extension, it is open source.

Source code and instructions for how to build and use it are available on
GitHub:
https://github.com/google/binexport/tree/master/binaryninja
https://github.com/google/binexport/ (Original source)
https://github.com/Vector35/binexport (Binary Ninja fork)

Official documentation for the Binary Ninja BinExport plugin:
https://dev-docs.binary.ninja/guide/binexport.html
5 changes: 2 additions & 3 deletions packaging/msi/Setup.wxs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2011-2024 Google LLC
Copyright 2011-2025 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -244,8 +244,7 @@
<Directory Id="BinDiff_Plugins_Binary_Ninja" Name="Binary Ninja">
<Component Id="BinaryNinja_Plugins" Win64="yes"
Guid="34E0F912-2193-4EDC-B417-A5C92A1151F8">
<File Name="binexport12_binaryninja.dll" KeyPath="yes" />
<File Id="BinaryNinja_Plugins_ReadmeTXT" Name="Readme.txt" />
<File Id="BinaryNinja_Plugins_ReadmeTXT" Name="Readme.txt" KeyPath="yes" />
</Component>
</Directory>

Expand Down
Loading