Skip to content

Commit

Permalink
Add r2ai-decai to mac dist bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
prodrigestivill committed Jan 25, 2025
1 parent 90939f6 commit dd1e3a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@ src/translations
/dist/macos/radare2.pkg
/dist/macos/radare2-unpkg
/dist/macos/disk
/dist/macos/extra
/dist/macos/*.dmg
10 changes: 8 additions & 2 deletions dist/macos/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

all: clean app dmg

app: ../../build/iaito.app radare2-unpkg
app: ../../build/iaito.app radare2-unpkg extra/r2ai
mkdir disk
cp -a ../../build/iaito.app disk/
scripts/embed-radare2.sh radare2-unpkg disk/iaito.app
cp -a extra/r2ai/decai/decai.r2.js disk/iaito.app/Contents/Resources/radare2/lib/radare2/last/
macdeployqt disk/iaito.app -verbose=2

dmg: app
Expand All @@ -20,6 +21,11 @@ radare2.pkg:
echo "Download first radare2.pkg from https://github.com/radareorg/radare2/releases"
@false

extra/r2ai:
mkdir -p extra
curl -L "$(shell curl -s https://api.github.com/repos/radareorg/r2ai/releases/latest | jq -r .tarball_url)" | tar -xzC extra/
cd extra && mv radareorg-r2ai-* r2ai

../../build/iaito.app:
echo "Building iaito..."
$(MAKE) -C ../.. QMAKE_FLAGS=IAITO_BUNDLE_R2_APPBUNDLE=true
Expand All @@ -28,4 +34,4 @@ clean:
rm -rf radare2-unpkg disk iaito.dmg

mrproper: clean
rm -f radare2.pkg
rm -rf radare2.pkg extra

0 comments on commit dd1e3a2

Please sign in to comment.