Packaging
Collection of snippets like short commands or steps for packaging.
Convert .app to .pkg
- Download and install latest quickpkg release.
- Make quickpkg file executable: chmod 755 ./quickpkg
- Build pkg:
quickpkg /Applications/MyApp.app --output MyApp.pkg
Convert .app to .dmg
- Create an empty folder and copy the .app file into it.
- Start Disk Utility and choose File > New Image > Image from Folder.
- Select the newly created folder.
- Enter a name for your .dmg file and save it.
Start app from unverified publisher
- Start app. Error message appears.
- Go to System Preferences > Security & Privacy > General.
- Application should be visible and can be added as exception.
Get Bundle IDs
… from native apps (like Mail: com.apple.mail) and third-party
Via Finder:
- Open Applications via Finder.
- Right-click on the required application and select “Show Packaged Contents”.
- Open the contents folder of application.
- Open the info.plist file and search for bundle ID (called “CFbundleIdentifier”).
Via Terminal:
- Run
osascript -e 'id of app "Google Drive"'
.