jordansissel / fpm

Effing package management! Build packages for multiple platforms (deb, rpm, etc) with great ease and sanity.
http://fpm.readthedocs.io/en/latest/
Other
11.09k stars 1.07k forks source link

osxpkg: --prefix value is essentially used twice #1996

Open ichernetsky opened 1 year ago

ichernetsky commented 1 year ago

Hi there,

--prefix is passed through to pkgbuild as --install-location now. This leads to the following behavior on macOS 13.1

When building a simple package containing a single executable using fpm v1.15.1 like this

fpm --no-depends --no-auto-depends --input-type dir --output-type osxpkg \
    --package app.pkg --prefix /usr/local/bin --name app --version 0.0.1 \
    --architecture native app

and then installing the resulting package, the app is placed under /usr/local/bin/usr/local/bin, not the expected /usr/local/bin.

Please let me know if you would like me to collect additional information.

Thank you!

Regards, Ivan.