Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ int main(const int argc, const char *const *const argv) {
args::HelpFlag help(parser, "help", "Display this help text", {'h', "help"});

args::ValueFlag<fs::path> appDirPath(parser, "appdir path", "Path to an existing AppDir", {"appdir"});
args::ValueFlagList<std::string> excludeLibraryPatterns(parser, "pattern",
"Shared library to exclude from deployment (glob pattern)",
{"exclude-library"});
args::ValueFlagList<std::string> extraModules(parser, "module",
"Extra Qt module to deploy (specified by name, filename or path)",
{'m', "extra-module"});
Expand Down Expand Up @@ -135,6 +138,9 @@ int main(const int argc, const char *const *const argv) {
ldLog() << std::endl << "Using Qt version: " << qtVersion << " (" << qtMajorVersion << ")" << std::endl;

appdir::AppDir appDir(appDirPath.Get());
if (const auto patterns = excludeLibraryPatterns.Get(); !patterns.empty()) {
appDir.setExcludeLibraryPatterns(patterns);
}

// allow disabling copyright files deployment via environment variable
if (getenv("DISABLE_COPYRIGHT_FILES_DEPLOYMENT") != nullptr) {
Expand Down