Re: [gtk-osx-users] Bundling with absolute path for binary.





On Feb 3, 2020, at 12:38 PM, Pascal <p p14 orange fr> wrote:

Hello,

I modify the bundle spec with an absolute binary path:
 <main-binary>/opt/chapitre6/exampleapp</main-binary>

But I've got this error:
ValueError: If the source /opt/chapitre6/exampleapp doesn't use a ${prefix} or ${prefix:*} macro, the 
destination path must be set

So I add:
 <main-binary dest="${bundle}/Contents/MacOS">/opt/chapitre6/exampleapp</main-binary>

Why dest is then required? What is the relation with prefix macro?


Pascal,

The prefix macro represents the part of the source path that's replaced with the destination path. If there's 
no prefix macro then bundler doesn't know how much of the path to copy over. I suppose that that could be 
special-cased for the main-binary tag, but it isn't.

Remember that gtk-mac-bundler is designed for bundling applications built with gtk-osx and that those install 
everything into a designated prefix. There's some probably misguided flexibility built in to allow pulling 
files from outside of the prefix but especially in the case of binaries it has a good chance of breaking the 
install_name rewriting and should be used with extreme care.

Regards,
John Ralls




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]