osx - productbuild path ignored on install -
i have osx application built qt. codesigned, packaged fit macstore , has been approved apple , ready sale in mac store.
though after installing it, installed location residing during packaging process instead of /applications.
alternatively i'm creating .dmg package of file, can install /applications.
at end of build procedure i'm running these commands:
codesign --force --deep --verify myapp.app/ --entitlements ${instdir}/entitlements.plist -s "3rd party mac developer application: company name" productbuild --component myapp.app /applications --sign "3rd party mac developer installer: company name" myapp.pkg
the result of pkg, i'm attempting install via installer:
$ sudo installer -store -pkg myapp.pkg -target / installer: note: running installer admin user (instead of root) gives better mac app store fidelity installer: myapp.pkg has valid signature submission: 3rd party mac developer installer: company name (key) installer: installation check: passed installer: volume check: passed installer: bundle com.companyname.myapp relocated /users/peti/dev/build/bin/mac/release/myapp.app installer: starting install installer: install 0.0% complete installer: install 17.1% complete installer: install 96.4% complete installer: install 100.0% complete installer: finished install
right after productbuild relocation saying /applications, didn't install there!! on subsequent run incorrect path. i've tried installing different locations.
i've tried installing app mac store same... goes incorrect path.
i've used:
pkgutil --expand
to extract package. packageinfo file says this:
<pkg-info overwrite-permissions="true" relocatable="false" identifier="com.companyname.myapp" postinstall-action="none" version="3.0.0" format-version="2" generator-version="installcmds-502 (14f1605)" install-location="/applications" auth="root" preserve-xattr="true">
any ideas going wrong? i've tried google solutions, no luck. incorrect path stored? don't see path embedded file before productbuild. productbuild doing weird?
finally think have explanation.
it installs correctly on every other machine, except our build machine. reason appears after execute named myapp.app anywhere on filesystem osx remembers path. when trying install next time around (update?) update application on known path.
an weirder scenario when have 2 "installations" of application (two copies) , trying install again, install alternating between 2 instances! smells bug, apple never going fix.
thanks @l'l'l. if explain me behaviour plus.
Comments
Post a Comment