Is it possible to reference an external file as a content file? #122

Open
opened 2026-01-29 16:30:05 +00:00 by claunia · 0 comments
Owner

Originally created by @stephen-swensen on GitHub (Aug 2, 2022).

Let's say I have buillt a package like myapp.deb and distribute it to customers along with a customer-specific config file like myapp.cfg... when installing myapp.deb from a directory with myapp.cfg placed along side of it, is it possible for myapp.deb to reference the external file (relative to the directory being installed from, like a home directory) so that it is copied to the application installation directory (like /usr/share/myapp/myapp.cfg)? Bonus if installation aborts if the file is missing.

Thanks!

Originally created by @stephen-swensen on GitHub (Aug 2, 2022). Let's say I have buillt a package like `myapp.deb` and distribute it to customers along with a customer-specific config file like `myapp.cfg`... when installing `myapp.deb` from a directory with `myapp.cfg` placed along side of it, is it possible for `myapp.deb` to reference the external file (relative to the directory being installed from, like a home directory) so that it is copied to the application installation directory (like `/usr/share/myapp/myapp.cfg`)? Bonus if installation aborts if the file is missing. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#122