forked from gdbinit/MachOView
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreatedmg
More file actions
executable file
·21 lines (16 loc) · 658 Bytes
/
createdmg
File metadata and controls
executable file
·21 lines (16 loc) · 658 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#TARGET=Debug
TARGET=Release
# Build disassembler
cd otool_disasm
/usr/bin/xcodebuild -configuration $TARGET
cp -f build/$TARGET/libdisasm.a ..
cd ..
# Build MachOView
/usr/bin/xcodebuild -configuration $TARGET
# Create DMG Installer
buildPlist="build/"$TARGET"/MachOView.app/Contents/Info.plist"
CFBuildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBuildNumber" $buildPlist)
CFBundleShortVersionString=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" $buildPlist)
cp -f README "build/"$TARGET
hdiutil create -fs HFS+ -volname "MachOView" -srcfolder "build/"$TARGET "MachOView-"$CFBundleShortVersionString.$CFBuildNumber".dmg"