Skip to content

Commit ee42183

Browse files
committed
Add deployFile to AppDir class interface
1 parent 333c281 commit ee42183

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

include/linuxdeploy/core/appdir.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ namespace linuxdeploy {
5151
// deploy icon
5252
bool deployIcon(const boost::filesystem::path& path);
5353

54+
// deploy arbitrary file
55+
void deployFile(const boost::filesystem::path& from, const boost::filesystem::path& to);
56+
5457
// execute deferred copy operations
5558
bool executeDeferredOperations();
5659

src/core/appdir.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,10 @@ namespace linuxdeploy {
635635
return true;
636636
}
637637

638+
void AppDir::deployFile(const boost::filesystem::path& from, const boost::filesystem::path& to) {
639+
return d->deployFile(from, to);
640+
}
641+
638642
void AppDir::setAppName(const std::string& appName) {
639643
d->appName = appName;
640644
}

0 commit comments

Comments
 (0)