Зачем конвертировать PKG в APP?
Many .pkg installers simply copy one or more .app bundles into /Applications. Extracting the .app directly avoids running pre/post-install scripts that execute with elevated privileges, which is useful for inspection or for deploying the app to a specific location without a full system install.
Способы конвертации PKG в APP
Suspicious Package FREE
Open the .pkg with Suspicious Package, go to the All Files tab, find the .app bundle, and drag it out to the Finder to extract it.
Pacifist APP
Drag the .pkg into Pacifist, browse the package contents to locate the .app, then click Extract to and save it to your desired location.
Об этих форматах
Файл PKG - это пакет установщика macOS; он устанавливает программное обеспечение на Mac. Дважды щелкните его, чтобы запустить приложение Apple Installer, которое проведет вас через процесс…
Открыть детали .PKG →Файл .app - это пакет приложения macOS, стандартный формат для любой программы, работающей на Mac. В macOS дважды щелкните по нему в Finder, чтобы запустить. Файл .app не может работать в…
Открыть детали .APP →Качество и на что обратить внимание
- This is an extraction, not a format conversion - the
.appis already inside the.pkg; you are unpacking it, not transforming it. - A
.pkgmay contain more than the main.app- drivers, daemons, frameworks, or preference panes may also be required; extracting only the.appcan leave out supporting files. - Suspicious Package shows the installer's scripts before you do anything, making it useful for deciding whether to trust the
.pkgbefore extracting.
Часто задаваемые вопросы
Why extract a `.app` from a `.pkg` instead of running the installer?
Will the extracted `.app` always work?
Can I extract a `.app` from a `.pkg` using the command line?
xar -xf file.pkg unpacks the XAR archive, then cat Payload | gunzip | cpio -id extracts the file tree including any .app bundles.What does Suspicious Package show before I extract?
.pkg would install and every script it would run, so you can review what the installer does before trusting it.