App::Packager(3)
π App::Packager π
okay bestie, gather round, because this is the App::Packager manual page β User Contributed Perl Documentation energy, and it's literally the abstraction layer for packagers. no cap. π
β¨ NAME β¨
App::Packager β Abstraction for Packagers π
πΈ SYNOPSIS πΈ
So App::Packager hands you an abstract interface to a whole bunch of common packagers, and the whole vibe is that it tries to catch as much common behaviour as possible. π¦
The main purpose? uniform access to application specific resources. that's the moment, that's the whole point.
The supported packagers are PAR::Packer, Cava::Packager, and unpackaged. And when it's the unpackaged case, resources get looked up in @PATH, and the name of the application package must be passed to the first use of App::Packager. yes, must. no negotiating. π
For example:
use App::Packager qw(:name My::App);
print "My packager is: ", App::Packager::Packager(), "\n";
print getresource("README.txt");
π« EXPORT π«
By default, the function getresource is exported. cute, right? And if you want it under a different name, you just hand over an alternative name like this:
use App::Packager( ':rsc' => '...alternative name...' );
π§ FUNCTIONS π§
β App::Packager::Packager
Returns the name of the actual packager, or "App Packager" if it's unpackaged.
β App::Packager::Version
Returns the version of the packager. slay.
β App::Packager::IsPackaged
Returns true if the application was packaged. π«Ά
ngl bestie, it's usually easier and safer to test with$App::Packager::PACKAGEDinstead, because that one works even ifApp::Packagerisn't available. lowkey important. π
β App::Packager::GetResourcePath
Returns the path name of the application resources directory. π
β App::Packager::GetResource($rsc)
Returns the file name of the application resource.
β App::Packager::GetUserFile($rsc)
Returns the file name of the user specific resource. π
π AUTHOR π
Johan Vromans, "<JV at CPAN dot org>" β iconic.
π SUPPORT π
Development of this module takes place on GitHub:
https://github.com/sciurius/perl-App-Packager
You can find documentation for this module with the perldoc command.
perldoc App::Packager
Please report any bugs or feature requests using the issue tracker on GitHub. we love a good issue tracker moment fr fr. π
π ACKNOWLEDGEMENTS π
This module was inspired by Mark Dootson's Cava packager. shoutout. β¨
π COPYRIGHT & LICENSE π
Copyright 2017,2018 Johan Vromans, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
π POD ERRORS π
Hey! The above document had some coding errors, which are explained below:
Around line 286:
=back without =over
not the =back without =over jump scare π the POD parser is in its flop era.
and that's the whole page, bestie!! π¦ this was perl v5.42.0, dated 2025-07-25, and yes, it's App::Packager(3) β stay packaged, stay iconic, mwah π
π¦ where this page comes from
- fedora 43: perl-App-Packager 1.440-7.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms