Changeset cbeed9092767db95a97ea79f6c8afbcf1dec2ea9
- Timestamp:
- 01/19/08 15:01:00
(6 months ago)
- Author:
- Felix Paul Kühne <fkuehne@videolan.org>
- git-committer:
- Felix Paul Kühne <fkuehne@videolan.org> 1200751260 +0000
- git-parent:
[3c38ce8c59371afc6894df9fe3aa81cac2f16925]
- git-author:
- Felix Paul Kühne <fkuehne@videolan.org> 1200751260 +0000
- Message:
osx: use dmg-creation code from the 0.8.6-bugfix branch to provide reliable NBs (to be reverted as soon as the existing script is fixed)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| reb149ee |
rcbeed90 |
|
| 988 | 988 | ln -s /Applications $(top_builddir)/vlc-${VERSION}/Applications ; |
|---|
| 989 | 989 | |
|---|
| 990 | | # Create disk image |
|---|
| | 990 | # Create disk image (temporarily taken from the 0.8.6-bugfix branch to provide reliable NBs) |
|---|
| 991 | 991 | echo "Creating disk image" ; |
|---|
| 992 | 992 | rm -f "$(top_builddir)/vlc-${VERSION}.dmg" ; |
|---|
| 993 | | hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-${VERSION}" \ |
|---|
| 994 | | "$(top_builddir)/vlc-${VERSION}.dmg" -format UDRW \ |
|---|
| 995 | | -scrub -imagekey zlib-level=9 -attach ; |
|---|
| | 993 | hdiutil create -srcfolder "$(top_builddir)/vlc-${VERSION}" \ |
|---|
| | 994 | "$(top_builddir)/vlc-${VERSION}.dmg" -format UDZO \ |
|---|
| | 995 | -scrub -imagekey zlib-level=9 ; |
|---|
| | 996 | echo "Disk image creation completed:" ; |
|---|
| | 997 | ls -la "$(top_builddir)/vlc-${VERSION}.dmg" ; echo ; |
|---|
| | 998 | |
|---|
| | 999 | # Create disk image |
|---|
| | 1000 | # echo "Creating disk image" ; |
|---|
| | 1001 | # rm -f "$(top_builddir)/vlc-${VERSION}.dmg" ; |
|---|
| | 1002 | # hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-${VERSION}" \ |
|---|
| | 1003 | # "$(top_builddir)/vlc-${VERSION}.dmg" -format UDRW \ |
|---|
| | 1004 | # -scrub -imagekey zlib-level=9 -attach ; |
|---|
| 996 | 1005 | |
|---|
| 997 | 1006 | # Make sure the root window of the dmg will pop up when the dmg is mounted. |
|---|
| 998 | 1007 | # Note: We dont mount in /Volumes to be sure we won't collide with an other |
|---|
| 999 | 1008 | # finder mounted dmg with the same name. |
|---|
| 1000 | | echo "Make sure the root window of the dmg will pop up when the dmg is mounted" ; |
|---|
| | 1009 | # echo "Make sure the root window of the dmg will pop up when the dmg is mounted" ; |
|---|
| 1001 | 1010 | # mkdir -p $(top_builddir)/vlcmnt ; |
|---|
| 1002 | 1011 | # hdiutil attach -nokernel -readwrite -noverify -noautoopen -private "$(top_builddir)/vlc-${VERSION}.dmg" -mountpoint "$(top_builddir)/vlcmnt/vlc-${VERSION}" ; |
|---|
| 1003 | | bless --folder "$(top_builddir)/vlcmnt/vlc-${VERSION}/" --openfolder "$(top_builddir)/vlcmnt/vlc-${VERSION}" ; |
|---|
| 1004 | | sleep 1 # Make sure operation completes |
|---|
| | 1012 | # bless --folder "$(top_builddir)/vlcmnt/vlc-${VERSION}/" --openfolder "$(top_builddir)/vlcmnt/vlc-${VERSION}" ; |
|---|
| | 1013 | # sleep 1 # Make sure operation completes |
|---|
| 1005 | 1014 | # cd "$(srcdir)" |
|---|
| 1006 | 1015 | |
|---|
| 1007 | 1016 | # Unmount the image now |
|---|
| 1008 | | hdiutil detach "$(top_builddir)/vlcmnt/vlc-${VERSION}" ; |
|---|
| 1009 | | rm -R $(top_builddir)/vlcmnt ; |
|---|
| | 1017 | # hdiutil detach "$(top_builddir)/vlcmnt/vlc-${VERSION}" ; |
|---|
| | 1018 | # rm -R $(top_builddir)/vlcmnt ; |
|---|
| 1010 | 1019 | |
|---|
| 1011 | 1020 | # Make sure the image is not writable |
|---|