Skip to content

Commit

Permalink
Add README and Applications to macOS dmg
Browse files Browse the repository at this point in the history
  • Loading branch information
prodrigestivill committed Jan 21, 2025
1 parent cf3df57 commit 1a67d69
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,11 @@ jobs:
./configure
make -j4
- name: packaging
working-directory: build
run: macdeployqt iaito.app -dmg -verbose=2
run: make -C dist/macos
- uses: actions/upload-artifact@v4
with:
name: iaito-x64.dmg
path: build/iaito.dmg
path: dist/macos/iaito.dmg
acr-macos-arm64:
runs-on: macos-latest
steps:
Expand All @@ -121,12 +120,11 @@ jobs:
./configure
make -j4
- name: packaging
working-directory: build
run: macdeployqt iaito.app -dmg -verbose=2
run: make -C dist/macos
- uses: actions/upload-artifact@v4
with:
name: iaito-arm64.dmg
path: build/iaito.dmg
path: dist/macos/iaito.dmg
meson:
runs-on: ${{ matrix.os }}
strategy:
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,8 @@ src/out
*.orig

# Translations
src/translations
src/translations

# macOS package
/dist/macos/disk
/dist/macos/*.dmg
20 changes: 20 additions & 0 deletions dist/macos/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.PHONY: all app clean

all: app iaito.dmg

app: ../../build/iaito.app radare2-unpkg
mkdir disk
cp -a ../../build/iaito.app disk/
macdeployqt disk/iaito.app -verbose=2

iaito.dmg: app
cp doc/README.txt disk/READ_THIS_FIRST.txt
ln -fs /Applications disk/
hdiutil create -format UDZO -fs APFS -volname iaito -srcfolder disk iaito

../../build/iaito.app:
echo "Building iaito..."
$(MAKE) -C ../..

clean:
rm -rf disk iaito.dmg
19 changes: 19 additions & 0 deletions dist/macos/doc/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
IMPORTANT!

Steps to install iaito:

1. First go to radare2 releases:
https://github.com/radareorg/radare2/releases/latest

2. Download the corresponding pkg file:
Apple Silicon (all models): radare2-m1-*.pkg
Intel CPU: radare2-x64-*.pkg

3. Run the pkg file either by double-click or in Terminal by running:
sudo installer -pkg radare2-*.pkg -target /

4. Drag and drop the iaito icon to /Applications.

5. Run this commands from Terminal:
sudo xattr -c /Applications/iaito.app
sudo codesign --force --deep --sign - /Applications/iaito.app

0 comments on commit 1a67d69

Please sign in to comment.