]> git.sesse.net Git - vlc/commitdiff
- MacOS X: bundle 'VLC Internet Plug-In' package into a disk image for online distrib...
authorDamien Fouilleul <damienf@videolan.org>
Sun, 30 Apr 2006 17:40:34 +0000 (17:40 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Sun, 30 Apr 2006 17:40:34 +0000 (17:40 +0000)
Makefile.am

index 65a321e7ecc230a54378b95a8cd9030ebcd64734..cee5f579f403ede7ac636af466327999c0c2cefe 100644 (file)
@@ -856,7 +856,8 @@ package-macosx:
 
 package-macosx-plugin:
 if BUILD_MOZILLA
-       rm -rf "$(top_builddir)/macosx-plugin-instdata/"
+# Create Installer
+       rm -rf "$(top_builddir)/macosx-plugin-instdata/"; true
        mkdir -p "$(top_builddir)/macosx-plugin-instdata"
        cp -R "$(top_builddir)/mozilla/VLC Plugin.plugin" "$(top_builddir)/macosx-plugin-instdata"
        rm -rf "$(top_builddir)/VLC Internet Plug-In.pkg"
@@ -865,6 +866,17 @@ if BUILD_MOZILLA
        -i "$(srcdir)/extras/MacOSX/plugin/InstallerInfo.plist" \
        -d "$(srcdir)/extras/MacOSX/plugin/InstallerDescription.plist"; true
        rm -rf "$(top_builddir)/macosx-plugin-instdata/"
+
+# Create disk image 
+       rm -f "$(top_builddir)/vlc-plugin-${VERSION}.dmg"; true
+       rm -rf "$(top_builddir)/vlc-plugin-${VERSION}/"; true
+       mkdir -p "$(top_builddir)/vlc-plugin-${VERSION}/"
+       mv "$(top_builddir)/VLC Internet Plug-In.pkg" "$(top_builddir)/vlc-plugin-${VERSION}/"
+       hdiutil create -srcfolder "$(top_builddir)/vlc-plugin-${VERSION}" \
+         "$(top_builddir)/vlc-plugin-${VERSION}.dmg" -format UDZO \
+         -scrub -imagekey zlib-level=9 ;
+       echo "Disk image creation completed:"
+       rm -rf "$(top_builddir)/vlc-plugin-${VERSION}"
 endif
 
 package-translations: