> For the complete documentation index, see [llms.txt](https://docs.intunemacadmins.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.intunemacadmins.com/snippets/packaging.md).

# Packaging

Collection of snippets like short commands or steps for packaging.

## Convert .app to .pkg

1. Download and install latest [quickpkg release](https://github.com/scriptingosx/quickpkg/releases/latest).
2. Make quickpkg file executable: chmod 755 ./quickpkg
3. Build pkg: `quickpkg /Applications/MyApp.app --output MyApp.pkg`

## Convert .app to .dmg

1. Create an empty folder and copy the .app file into it.
2. Start Disk Utility and choose File > New Image > Image from Folder.
3. Select the newly created folder.
4. Enter a name for your .dmg file and save it.

## Start app from unverified publisher

1. Start app. Error message appears.
2. Go to System Preferences > Security & Privacy > General.
3. 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:

1. Open Applications via Finder.
2. Right-click on the required application and select "Show Packaged Contents".
3. Open the contents folder of application.
4. Open the info.plist file and search for bundle ID (called "CFbundleIdentifier").

Via Terminal:

1. Run `osascript -e 'id of app "Google Drive"'`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.intunemacadmins.com/snippets/packaging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
