Menu
Nov 18, 2019 Again, just because you can extract a DMG file in Windows, or even convert a DMG to a Windows-readable format, doesn't always mean that the contents of the DMG file will suddenly become compatible with Windows. The only way to use a Mac program or a Mac video game in Windows is to download the Windows-equivalent version. AfterPack - The function (or path to file or module id) to be run after pack (but before pack into distributable format and sign). AfterSign - The function (or path to file or module id) to be run after pack and sign (but before pack into distributable format). Usually this name is the same as the name of the compressed file without the.dmg suffix. In the file browser, set the location to save the file on your computer. This has nothing to do with the installation location on the end user’s computer, only where it saves it on your computer. Set the Size pop-up menu to a size that is large enough to hold your application. Leave the Format set to Mac OS Extended (the HFS+ file format).
Mar 03, 2020 Electron Packager is a command line tool and Node.js library that bundles Electron-based application source code with a renamed Electron executable and supporting files into folders ready for distribution. For creating distributables like installers and Linux packages, consider using either Electron.
Developing an application is only part of the story. You must now get it out there for people to use. Given that this is a UNIX-based operating system, you could just
tar and gzip your file. That’s fine if your end users are mostly UNIX users, but this doesn’t meet the needs of more general users. To complete the transition, you should package you application like other Mac apps. This chapter walks you through some of those details since they are probably new to you as a UNIX developer.
This chapter is important for all non-command-line developers, whether your application is an end-user commercial suite or an open source tool.
Bundles vs. Installers
Most applications in OS X do not need to use an installer. To make installation and removal easy, OS X provides bundles.
A bundle is basically a directory that contains an application. Unlike normal folders, however, it appears to the user like an ordinary file. The user can double-click a bundle, and the application will launch. Since the bundle is really a directory, it can contain all the support files that are needed for the application.
The reason to use bundles is somewhat obvious if you have installed many applications in OS X: applications in the form of a bundle can be installed simply by dragging the application to the destination folder in the Finder.
There are, however, some situations where bundles are problematic. An application that installs kernel extensions, startup items, system-wide preference panes, or any other system-wide resources cannot be installed by dragging the application, since those resources need to be in a separate place on the drive.
If your application requires installing a startup item, the only practical way to install your application is the use of an installer. OS X makes this easy using PackageMaker. Other commercial solutions are also available from various third parties such as Stuffit InstallerMaker from Aladdin Systems and Installer VISE from MindVision.
In most cases, however, it is preferable to install system-wide components the first time your application is launched. You can do this using Authorization Services, as described in the book Authorization Services Programming Guide, available from the Apple Technical Publications website.
For more information about how to create a bundle, see Bundle Programming Guide.
Packaging Basics
There are two main applications for compressing your application: Disk Utility (or Disk Copy in older versions of OS X) and PackageMaker. Disk Utility allows you to create compressed disk images (similar to an ISO file, but compressed), whereas PackageMaker creates packages that can be installed using the OS X installer.
The recommended form of application distribution is a compressed disk image. A compressed disk image preserves resource forks that may be present, allows drag-and-drop installation, allows license display, and even allows encryption of data, if required.
If your application is a single application bundle, simply put it and any relevant documentation on a disk image with Disk Utility, then compress it and distribute it. Dmg back of the book map.
If you have an application that requires administrator privileges to install into privileged directories or requires more than a simple drag-and-drop installation, use PackageMaker (
/Developer/Applications/PackageMaker ) to build installer packages for Apple’s Installer application.
The basics of using Disk Utility to make a disk image are given in the next section. For help using PackageMaker, choose PackageMaker Help from the PackageMaker Help menu.
Disk Utility (or Disk Copy)
The following steps help you package your application as a disk image (
.dmg file) for distribution on OS X.
Once you have a disk image, mount it by double-clicking it. You can now copy your files to that mounted image. When you have everything on the image that you want, you should make your image read-only. Again from Disk Utility, perform these steps:
You now have a disk image for your application that is easy to distribute.
Creating Disk Images Programmatically Using hdiutilJs File Packaging Into Dmg Free
If you find yourself regularly creating disk images, you may find it helpful to automate this process. While a complete script is beyond the scope of this document, this section includes a code snippet to get you started.
For more information on hdiutil, see
hdiutil .
Listing 8-1 Automatic Disk Image Creation using
hdiutil
Tell the World About It
Once you have an application, how do you get the word out? First, let Apple know about it. To get your application listed on Apple’s main download page for OS X, go to http://www.apple.com/downloads/macosx/submit/ and fill out the appropriate information about your application. You should also go to http://guide.apple.com/ and at the bottom of the page, click Submit a Product to get your application listed in the Apple Guide. You might then also want to send notices to http://www.versiontracker.com/and Macintosh news sites like http://www.macworld.com/ and http://www.macnn.com/.
Js File Packaging Into Dmg SoftwareJs File Packaging Into Dmg Download
Copyright © 2002, 2012 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2012-06-11
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |