> On Feb 3, 2020, at 12:38 PM, Pascal <p....@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
_______________________________________________
gtk-osx-users-list mailing list
gtk-osx-users-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list