Browse Source

Auto-Create App distribution DMG.

Thomas Buck 10 years ago
parent
commit
f62a1c7faa
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      Makefile

+ 10
- 0
Makefile View File

121
 	cp mac_dist/openraider.icns bin/OpenRaider.app/Contents/Resources/openraider.icns
121
 	cp mac_dist/openraider.icns bin/OpenRaider.app/Contents/Resources/openraider.icns
122
 	cp bin/release/OpenRaider bin/OpenRaider.app/Contents/MacOS/OpenRaider
122
 	cp bin/release/OpenRaider bin/OpenRaider.app/Contents/MacOS/OpenRaider
123
 
123
 
124
+bundle-image: bundle
125
+	hdiutil create -size 32m -fs HFS+ -volname "OpenRaider" bin/tmp.dmg
126
+	hdiutil attach bin/tmp.dmg
127
+	cp -r bin/OpenRaider.app /Volumes/OpenRaider/OpenRaider.app
128
+	osascript -e 'tell application "Finder" to make alias file to POSIX file "/Applications" at POSIX file "/Volumes/OpenRaider/"'
129
+	hdiutil detach /Volumes/OpenRaider
130
+	hdiutil convert bin/tmp.dmg -format UDZO -o bin/OpenRaider.dmg
131
+	rm -rf bin/tmp.dmg
132
+
124
 all: debug release prof
133
 all: debug release prof
125
 
134
 
126
 debug:
135
 debug:
223
 
232
 
224
 clean: clean-emacs clean-build clean-test clean-obj clean-dep
233
 clean: clean-emacs clean-build clean-test clean-obj clean-dep
225
 	@-rm -rf bin/OpenRaider.app
234
 	@-rm -rf bin/OpenRaider.app
235
+	@-rm -rf bin/OpenRaider.dmg
226
 
236
 
227
 clean-dep:
237
 clean-dep:
228
 	@-echo "Cleaning dependencies                        "
238
 	@-echo "Cleaning dependencies                        "

Loading…
Cancel
Save