You've already forked linuxdeploy
mirror of
https://github.com/encounter/linuxdeploy.git
synced 2026-03-30 11:18:58 -07:00
Show warning if existing AppRun is overwritten
This commit is contained in:
@@ -59,6 +59,13 @@ namespace linuxdeploy {
|
||||
|
||||
if (!customAppRunPath.empty()) {
|
||||
ldLog() << LD_INFO << "Deploying custom AppRun: " << customAppRunPath << std::endl;
|
||||
|
||||
const auto& appRunPathInAppDir = appDir.path() / "AppRun";
|
||||
if (bf::exists(appRunPathInAppDir)) {
|
||||
ldLog() << LD_WARNING << "File exists, replacing with custom AppRun" << std::endl;
|
||||
bf::remove(appRunPathInAppDir);
|
||||
}
|
||||
|
||||
appDir.deployFile(customAppRunPath, appDir.path() / "AppRun");
|
||||
appDir.executeDeferredOperations();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user